https://api.pocketsflow.com. Authenticate with your API key
(Authorization: Bearer pk_live_… or pk_test_…). Every setting here is
free on every plan, Free included.
Read the settings
GET /products/{id}/checkout-offers
Payment plan
PATCH /products/{id}/payment-plan — partial: fields you leave out keep their value.
{ "paymentPlan": { "enabled": true, "installments": 3, "surchargePercent": 0 } }.
Exit offer and downsell
PATCH /products/{id}/exit-offer — send exitOffer, downsell or both.
Turning the exit offer on creates a discount with its own code (returned as
exitOffer.discountId); it stays in step with the amount you set.
Errors
What a checkout offers (public)
GET /checkout-offers/{productId} — no API key. Returns what the product’s
checkout offers right now. An offer is null when it is off.
Orders
Every payment of a plan is an order withinstallment: { "index": 2, "of": 3 }.
See the installment.paid and
installment.failed webhooks.
MCP
The MCP server exposesget_checkout_offers, update_payment_plan and
update_exit_offer.