---
title: "Create Order"
method: POST
path: "/api/reseller/orders"
tags: ["reseller"]
---

# Create Order

`POST /api/reseller/orders`

## Request

- Base URL: `https://esimker.com` (the document declares no server; this is the origin it was published from)
- URL: `https://esimker.com/api/reseller/orders`
- Auth: none declared

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.

## Headers

- `X-API-Key` string, nullable

## Request body

- ResellerOrderIn
  - `plan_id` integer, required
  - `external_id` string, nullable
  - `period_num` integer, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/esimker/apis/esimker-api.md) · [All operations](https://skmtc.dev/esimker/apis/esimker-api/llms.txt) · [OpenAPI document](https://skmtc.dev/esimker/apis/esimker-api/revisions/13ea312e6990?raw)
