Set the offers after payment
set_offer_chainArrange the one-click upsells buyers see after paying as a chain: which offer comes first, and where each yes and each no leads, another offer or the thank-you page (thank_you). Use offer ids from get_product (upsells and offerChain); create an offer with add_upsell first. Up to 5 offers, no loops, every offer reachable from the first, on every plan; a downsell is the offer a no leads to. This replaces the chain; offers left out stay on the checkout but aren't shown. Each offer a buyer takes is charged the way their first payment allows, and only when they say yes. On a draft this applies straight away. On a LIVE checkout it applies straight away too (status applied; the seller can roll it back on their Approvals page), unless it touches money: a price, currency, billing, the delivery link, payment plans, an early-bird price or campaign, or a retention discount or pause. Those create an approval request instead (status pending_approval): tell the seller, give them the approvalUrl, and check later with approval_status. To change other things straight away, don't send money fields in the same call. Never invent a price or a link.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"product": "<product>",
"steps": "<steps>"
},
"name": "set_offer_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | The offers in order. The first is shown first. | |
| account | No | Only to work in a client's account: its id from list_accounts. Leave it out for your own account. | |
| product | Yes | The checkout's id or slug. |