Buy more data
create_topup_checkoutBuy more data for an eSIM the user already has — the step after list_topup_options.
Call it with the order_id of the fulfilled eSIM and a plan_id chosen from list_topup_options. The top-up lands on the existing eSIM: same QR code, nothing to re-install. Returns a new order_id and where to pay, exactly like create_checkout: 'card' returns a checkout_url for a human to open, confirmed via get_order_status; 'x402' returns an x402_url for a wallet to settle in USDC.
Never accepts payment details — a card is entered on the hosted page, and a wallet signs for itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes | plan_id from list_topup_options | |
| order_id | Yes | order_id of the eSIM to add data to | |
| pay_with | No | How the buyer intends to pay. 'card' returns a hosted checkout link for a human to open in a browser. 'x402' returns an x402_url for a wallet tool to settle in USDC, with no browser step — only choose it if you have a wallet. An order keeps the rail it was first given: to pay an existing card order in USDC instead, cancel it and start a new one, so there are never two live ways to pay it. | card |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||