Create eSIM checkout link
create_checkoutBuy the chosen eSIM data plan: builds a cart and returns a checkout URL the traveller opens to pay by credit card on hungry-esim.com — no crypto wallet and no API key needed. Use once a plan is picked. Does NOT charge — the user completes payment on the website. For unlimited plans, period_num (how many days of data the traveller wants) is required. If the customer is signed in, the order is linked to their account automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of eSIMs, default 1 | |
| No | Guest email — prefills checkout so it skips the details step. Ignored when the customer is signed in (their account email is used). Never determines which account the order belongs to. | ||
| country | Yes | Customer's CHECKOUT country (ISO alpha-2) — sets checkout region/currency and URL locale. NOT the eSIM's coverage country. If the store doesn't serve it, the store's default region is used. | |
| period_num | No | Days for unlimited plans (1-30). Required for unlimited, ignored otherwise. | |
| variant_id | Yes | Variant id from search_esim_plans |