Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
title: esimker Reseller API
description: 'Prepaid travel data eSIMs. No account is needed: an order is addressed by
the secret token from its URL. Prices are USD strings, from $1.00.
Two ways to buy:
- **Storefront flow** (`catalog`, `orders`): pick a plan, `POST /api/orders`, send the
buyer to `checkout_url` to pay in crypto, then poll `GET /api/orders/{token}`
until `status` is `ready` — the eSIM (`esim.activation_code`) is in the payload.
- **Prepaid wallet** (`wallet`): `POST /api/wallet` mints a wallet whose secret code is
the only credential (`X-Wallet-Code`); `POST /api/wallet/deposits` opens a top-up
invoice and, with `currency` set, returns the coin address and the exact amount for a
payer with no browser; `POST /api/orders` with `payment_method: "wallet"` charges the
balance and issues at once (`client_ref` makes a retry return the same order).
- **Reseller API** (`reseller`): white-label partners on `X-API-Key`, retail minus a
discount; keys are issued by support.
The wallet and the catalogue are also MCP tools at `POST https://esimker.com/api/mcp`
(Streamable HTTP; the wallet code goes in `Authorization: Bearer`).
The guide for agents is https://esimker.com/agents (the wallet: https://esimker.com/agents#wallet).
**Buyer accounts** (`account`) are the storefront''s own cabinet: an address and a password
as a second way for a person to reach their orders and wallets, on a session cookie with a
CSRF echo. An account is optional and nothing above needs one — an agent keeps the order
token and the wallet code, and has no use for these routes.'
version: '1'
tags:
- name: reseller
paths:
/api/reseller/me:
get:
tags:
- reseller
summary: Me
description: 'The wallet behind the key: name, balance and the discount off retail.'
operationId: me_api_reseller_me_get
parameters:
- name: X-API-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Me Api Reseller Me Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/reseller/packages:
get:
tags:
- reseller
summary: Packages
description: 'Every data plan on sale with the wallet''s price. `daily_unlimited` plans are
priced per day and take `period_num` on the order. Re-fetch at least daily —
a plan can be pulled from sale between two calls, and ordering one then is a
404.'
operationId: packages_api_reseller_packages_get
parameters:
- name: X-API-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
type: object
additionalProperties: true
title: Response Packages Api Reseller Packages Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/reseller/orders:
post:
tags:
- reseller
summary: Create Order
description: 'Charge the wallet and issue an eSIM. 402 when the balance is short. Send
your own `external_id`: a repeat POST with the same value returns the existing
order instead of charging twice. The order comes back `paid`; poll
`GET /api/reseller/orders/{token}` for `ready` and the activation code.'
operationId: create_order_api_reseller_orders_post
parameters:
- name: X-API-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ResellerOrderIn'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Create Order Api Reseller Orders Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/reseller/orders/{token}:
get:
tags:
- reseller
summary: Get Order
description: The order; once `status` is `ready` it carries `esim.activation_code`.
operationId: get_order_api_reseller_orders__token__get
parameters:
- name: token
in: path
required: true
schema:
type: string
title: Token
- name: X-API-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Get Order Api Reseller Orders Token Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
ResellerOrderIn:
properties:
plan_id:
type: integer
maximum: 2147483647.0
minimum: 1.0
title: Plan Id
external_id:
anyOf:
- type: string
maxLength: 64
minLength: 1
- type: 'null'
title: External Id
period_num:
anyOf:
- type: integer
maximum: 365.0
minimum: 1.0
- type: 'null'
title: Period Num
type: object
required:
- plan_id
title: ResellerOrderIn
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError