The API
Robots buy here too.
No API key, no sign-up, no sales call. Find a plan, start an order with the person’s email, hand them the pay link, read the eSIM back. The whole shop, from code.
Three doors, one shop
The same catalogue and the same order path, whichever your stack speaks. None of them needs a credential.
- REST.
GET /api/v1Plain JSON over HTTPS. The whole surface is described in the OpenAPI document, and the base path answers with where everything is. The OpenAPI document - MCP.
POST /api/mcpA Model Context Protocol server over Streamable HTTP: the same five steps as tools. No session, no auth. The server card - A2A.
POST /api/a2aThe same skills as an Agent2Agent agent: JSON-RPC 2.0, a data part in, the result in a data part back. The agent card
The whole flow
Four steps from nothing to an installed eSIM. Your code does three of them; the person does the paying.
- Find a plan.
GET /api/v1/catalog/plans/japanRead the catalogue: every destination, or one place’s plans by code or slug. Each plan names its networks country by country (ISO 3166 alpha-2 and alpha-3) and where its traffic exits. Prices are in the currency’s minor unit; add ?currency= to choose one of USD, AUD, NZD, EUR, GBP, CAD, SGD, JPY, and every plan lists its price in all of them. - Start the order.
POST /api/v1/agent/ordersSend the person’s email and a productId. Back comes the order, Stripe’s pay link and the order token, returned only here. The same idempotencyKey returns the same order, never a second token. - The person pays.
payUrl → the personHand the pay link over; it lasts 30 minutes. Nothing is charged until they pay, and your program is never given a payment credential. - Read the eSIM back.
GET /api/v1/agent/orders/{ref}With the order token as a bearer. Once the order is fulfilled, the answer carries the install details; the person gets the same by email. Or give a callbackUrl and be told when it is done.
Every public endpoint
The ones that need no sign-in. A customer’s own orders, eSIMs and account have their endpoints too: they take the customer’s session and live in the OpenAPI document. Read the full API docs.
The catalogue
GET /api/v1/catalog/destinations: Every country and region on sale, with plan counts and "from" prices.GET /api/v1/catalog/plans/{destination}: Plans for a code or slug (JP, japan, europe); regional plans that cover it included. Each with its networks there by ISO 3166 code, where its traffic exits, and its price in every currency.GET /api/v1/catalog/trip?to=JP,KR,TH: A multi-stop trip: one plan covering every stop, or the cheapest plan per country.GET /api/v1/catalog/plan/{productId}: One plan, read live: every country it covers with ISO2, ISO3 and the networks there, its internet breakout, and its price in every currency. Confirm a price here before quoting it.GET /api/v1/catalog/currencies: The currencies a price can be shown and paid in.
Orders
POST /api/v1/agent/orders: Start an order with an email and a productId. Answers the pay link and the one-time order token.GET /api/v1/agent/orders/{ref}: The order, with the order token as a bearer. Once fulfilled, the install details.GET /api/v1/agent/watch/{key}: An order’s status and its times by watch key. Never who bought, what, or how to install it.
Piggyback partners
GET /api/v1/piggyback/partner/summary: A partner’s standing: code, rate, and money pending, due, paid and owed back. With the partner’s own key.GET /api/v1/piggyback/partner/sales: Every attributed sale, 200 a page, as JSON or CSV: where to, what it came to, the click id, an anonymous customer token, the commission and the Stripe transfer that paid it.GET /api/v1/piggyback/partner/days: Clicks, sales and earnings by day, up to a year.GET /api/v1/piggyback/partner/transfers: Each payout with Stripe’s own transfer id and the sales in it.GET /.well-known/piggyback-keys.json: The public key that checks the signature on every partner answer and export.
One-read files and meta
GET /catalog.json: The whole catalogue in one read. A cached copy, for finding a plan, never for pricing one.GET /discovery.json: Every address a program can use, and whether each is live, cached or static.GET /api/v1/openapi.json: The whole API as OpenAPI 3.1: every endpoint, field and error.GET /api/v1/status: What works right now, component by component.GET /api/v1/health: Liveness, and the commit this deployment was built from.
The numbers
- No API key. Not to buy. The one credential is the order token: issued once per order, read with a bearer header, never put in a URL. Piggyback partners reading their own sales use a key from their partner page.
- 14 days. An order token reads its order for 14 days; a watch key answers for 14 days.
- 30 minutes. How long a pay link lasts. Expired unpaid means start again; the same idempotency key is safe to resend.
- 5 eSIMs. The most one order holds. 10 orders per email per hour; 200 per network address, wide on purpose because a platform’s assistants share a few.
- 429 + 60s. Over a limit answers 429 with Retry-After in seconds. Wait it out and resend the same idempotencyKey.
- 8 currencies. Show and charge in USD, AUD, NZD, EUR, GBP, CAD, SGD, JPY: ?currency= on the catalogue, "currency" on the order. Every plan lists its price in all of them, and each is exactly what that currency’s checkout charges.
Questions
Do I need an API key?
Not to buy. There is no registration, no OAuth client and nothing to apply for. Start an order and keep the order token it answers. The one other credential is a Piggyback partner’s own key, for reading their own sales.
Can my program pay?
No. The pay link is Stripe’s hosted page and the person opens it themselves. A program is never given a payment credential, and it never needs the person’s SimPig password: buying has no account step.
Why do catalog.json and the live API disagree?
catalog.json is a cached copy that can lag the shop by up to an hour: use it to find a plan, never to price one. Confirm a price at the live plan endpoint, or start the order and show the total it returns.
Can my program earn a commission?
Yes. Join Piggyback, then send your partner code as "partner" when you start an order. You earn a share of what the person pays, and they pay the same.
Can a program take the free trial?
No. The trial is claimed by the person themselves on its own page; it is not offered through the API or any tool.
Where are the rules?
The terms decide. Tell the person before they pay that eSIMs are final once delivered, and check their phone supports eSIM first; the agent guide has the refund rule word for word.
Read the full API docs · The agent guide, step by step · How agents authenticate · llms.txt, the short index · The terms