Partner API

Resell data eSIMs and +372 phone numbers under your own brand. Prepaid balance, one JSON API, signed webhooks.

Overview

You buy from a prepaid EUR balance at your partner price and sell at whatever price you choose. Your customers never hear from us: you get the activation code and a plain QR, and you deliver them. We support you; you support your customers.

Base URLhttps://api.simsup.net
FormatJSON request and response bodies, UTF-8
AuthAuthorization: Bearer sk_live_... or sk_test_...
ProductsData eSIMs (by SKU), data top-ups, +372 numbers with a year of validity, number renewal, number credit
PaymentPrepaid balance in EUR, funded in BTC or XMR, minimum 100 EUR per deposit
Machine-readable/openapi.json (OpenAPI 3.1)

Quick start

Use your sk_test_ key first. Test mode never touches real stock or real money.

1. Fund the test balance

Request
curl https://api.simsup.net/v1/deposits \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount_cents": 50000, "idempotency_key": "4f6c2c1e-2d8a-4b8e-9a7f-0f3b6f3d9e10"}'

In test mode a deposit settles at once. In live mode the response lists payment_methods: a BTC and an XMR address with the exact amount for each. Pay either before expires_at; the balance is credited when the payment settles.

2. Pick a SKU

Request
curl "https://api.simsup.net/v1/catalog?country=FR" \
  -H "Authorization: Bearer $KEY"

3. Order it

Request
curl https://api.simsup.net/v1/orders \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{"sku": "fr-5gb-30d-12849b", "reference": "your-order-1001", "idempotency_key": "b8e0f1a4-1c55-4f0e-9d2b-6a7c3e5d4f21"}'

The order comes back provisioning. Within seconds to minutes it becomes ready: you get an order.ready webhook, or poll GET /v1/orders/{id}.

4. Deliver it

Show your customer the QR from GET /v1/esims/{id}/qr.png, or the activation_code (and its smdp_address and matching_id for manual entry).

Authentication

Every /v1 request carries a key in the Authorization header. Keys look like sk_live_ or sk_test_ followed by 32 letters and digits. Keep them on your servers only.

Live and test mode

The key decides the mode. Each mode has its own balance, orders, eSIMs, lines, events and statements, and nothing crosses between them. Every resource carries "livemode": true|false.

Live (sk_live_)Test (sk_test_)
Catalog and pricesRealSame as live
DepositsPaid in BTC or XMRSettle immediately, no payment
eSIMsReal profiles from the networkFake profiles, ready about 5 seconds after ordering
NumbersReal +372 numbers from stockFake numbers starting +372000, unlimited stock
WebhooksOne endpoint receives both modes' events, each marked with livemode. It must be https on port 443.

Conventions

Idempotency

Every request that spends money or opens a deposit requires an idempotency_key in its JSON body: 16 to 128 characters, unique per logical purchase. A UUID is ideal.

If a request times out or you get a 5xx, retry it with the same key. That is always safe and is the only way to be sure you were charged at most once.

Errors

402 Payment Required
{
  "error": {
    "code": "insufficient_balance",
    "message": "balance 3.20 EUR is below the price 7.50 EUR",
    "request_id": "9f3c1a2b7d4e"
  }
}

Branch on code, never on message. Codes are stable: once published, a code keeps its meaning.

StatusCodeMeaning
400invalid_requestMalformed or invalid input; the message says what
401unauthorizedKey missing, malformed, unknown or revoked
402insufficient_balanceBalance below the price; deposit and retry with the same key
403forbiddenSource IP not on the key's allowlist
403partner_suspendedAccount suspended
403daily_spend_cap_reachedThe order would pass today's spend cap (resets 00:00 UTC)
403daily_line_cap_reachedDaily limit on new numbers reached (resets 00:00 UTC)
404not_foundNo such resource in this account and mode, or no such endpoint
409idempotency_mismatchKey already used for a different request
409out_of_stockNo numbers in stock right now; stock refills hourly
409not_cancellableeSIM installed, used, not yet delivered, or past the 14-day window
409not_renewableLine reclaimed or released
409not_restorableLine is not inside its restore window
409topup_unavailableeSIM not ready, not reloadable, or option not offered
422sku_unavailableSKU not in your catalog right now
422amount_not_allowedLine credit too small to sell; use a larger amount
429rate_limitedToo many requests; wait Retry-After seconds
500internal_errorOur fault; retry with the same idempotency key

Limits

LimitDefaultNotes
Request rate10 per second, bursts of 20Per account and mode; 429 with Retry-After
Daily spend500 EURSum of today's purchases (UTC), not counting orders that failed and were refunded; raised on request
New numbers per day10Raised on request
Deposit100 to 10,000 EURPer deposit
Line credit1.00 to 200.00 EUR face valuePer request
Request body16 KiB

GET /v1/balance shows how much you can still spend today in available_today_cents.

Balance and pricing

Deposits

POST /v1/deposits with amount_cents returns payment_methods, one per coin: send exactly amount of coin to address (or open uri in a wallet) before expires_at. Amounts are decimal strings in the coin's own unit; copy them, do not round. due drops below amount after an underpayment: send the rest. On settlement your balance is credited with exactly amount_cents and you get deposit.settled; an unpaid deposit ends expired with deposit.expired. GET /v1/deposits/{id} returns the same addresses while the deposit is pending. If a deposit expires part-paid, contact us with its id and we credit what arrived.

Order lifecycle

Every purchase is an order: a data eSIM, a top-up, a number, a renewal, a restore or a line credit. Its kind says which.

StatusMeaningNext
placingDebited; the network is being askedprovisioning, ready, failed
provisioningAccepted; the eSIM is being issued (data only)ready
readyDeliveredcancelled (data, if refunded)
failedNot delivered; price returned to your balancefinal
needs_reviewThe network did not confirm the outcome. Money is held, not lost, while we confirm it, normally within one business day. It ends ready or failed.ready, failed
cancelledDelivered eSIM cancelled unused; refundedfinal

Numbers, renewals, restores and credits are usually ready in the create response. Data eSIMs usually take seconds and occasionally a few minutes; rarely an hour.

Data eSIMs

Delivering

Once ready, an eSIM has an iccid, an activation_code (LPA:1$smdp$matching-id) split into smdp_address and matching_id, and a qr_code_url. The QR is a plain PNG with nothing else on it; ?size= takes 128 to 1024 pixels.

Usage

GET /v1/esims/{id} returns usage refreshed from the network at most every 5 minutes: data_total_bytes, data_used_bytes, data_remaining_bytes, installed, activated_at and expires_at.

Daily plans

A SKU with "daily": true is sold by the day: send days (1 to 365) with the order, and price_cents is per day. Do not send days for other SKUs.

Top-ups

GET /v1/esims/{id}/topups lists what can be added to that eSIM. A daily option (id extend) extends the plan by days; the others add a fixed amount of data. Buy one with POST /v1/esims/{id}/topups. Options are specific to the eSIM; list them right before buying.

Cancelling

POST /v1/esims/{id}/cancel works within 14 days of purchase if the eSIM was never installed on a device or used. The eSIM is permanently deactivated and the order plus any top-ups are refunded. Cancelling twice returns the cancelled eSIM.

Numbers

SKU ee-number-1y is an Estonian +372 number with voice, SMS and data, valid for one year. The line comes back with its msisdn, eSIM activation_code and qr_code_url. Incoming SMS are read on the device; the API does not expose them.

States

StateMeaningYou can
activePaid upcredit, renew
expiring_soonUnder 30 days leftcredit, renew
graceExpired; still works for 30 days (grace_until)credit, renew
lapsedGrace over; will be reclaimed soonrenew
reclaimedTaken back; restorable until restore_until (60 days)restore
releasedGone; the number may be reissuednothing
A line you do not renew will be reclaimed after its grace period. Webhooks are how you hear about it in time.

Webhooks and events

Set an endpoint with PUT /v1/webhook. It receives live and test events alike; tell them apart by livemode. The response contains a signing secret (whsec_...), shown once; setting the URL again rotates it. Each event is POSTed as JSON:

Webhook request
POST /your/endpoint HTTP/1.1
Content-Type: application/json
Webhook-Id: evt_120
Webhook-Signature: t=1795000000,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd
Webhook body
{
  "id": "evt_120",
  "type": "order.ready",
  "created_at": "2026-11-24T10:00:05Z",
  "livemode": true,
  "data": {
    "order_id": "po_7QdLm2XvA9rT4kWb8NcE",
    "kind": "data",
    "status": "ready",
    "esim_id": "esim_Kp2Rz8WqT1mYc6VbN0Hd",
    "reference": "your-order-1001"
  }
}

Events are thin: data names the resource and its status at that moment. Fetch the resource for its full, current state. That way a late or out-of-order delivery can never overwrite newer information.

Delivery

Verifying signatures

Webhook-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256> over the string t + "." + raw body, keyed with your secret. Reject a signature older than 5 minutes.

Python
import hmac, hashlib, time

def verify(secret: str, header: str, body: bytes, tolerance=300) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    t, sig = parts.get("t", ""), parts.get("v1", "")
    if not t.isdigit() or abs(time.time() - int(t)) > tolerance:
        return False
    mac = hmac.new(secret.encode(), t.encode() + b"." + body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(mac, sig)
Node.js
const crypto = require("crypto");
function verify(secret, header, rawBody, tolerance = 300) {
  const parts = Object.fromEntries(header.split(",").map(p => p.split("=", 2)));
  const t = Number(parts.t);
  if (!t || Math.abs(Date.now() / 1000 - t) > tolerance) return false;
  const mac = crypto.createHmac("sha256", secret).update(`${parts.t}.${rawBody}`).digest("hex");
  return crypto.timingSafeEqual(Buffer.from(mac), Buffer.from(parts.v1 || ""));
}

Event types

TypeWhendata
order.readyA data eSIM or number order is deliveredorder_id, kind, status, esim_id or line_id, reference
order.failedAn order was not delivered and was refundedorder_id, kind, status, reference
topup.appliedA top-up landedorder_id, esim_id
topup.failedA top-up was refused and refundedorder_id, esim_id
esim.cancelledAn eSIM was cancelled and refundedesim_id, order_id, refund_cents
deposit.settledFunds crediteddeposit_id, amount_cents, balance_cents
deposit.expiredA deposit was not paid in timedeposit_id
balance.lowBalance fell below your thresholdbalance_cents, threshold_cents
line.renewedA renewal landedorder_id, line_id, valid_until
line.creditedA credit landedorder_id, line_id, amount_cents
line.restoredA restore landedorder_id, line_id
line.expiring30 and 7 days before expiryline_id, state, days_left, valid_until
line.lapsedExpired; grace period runningline_id, state, grace_until
line.reclaimedTaken back after graceline_id, state, restore_until
line.releasedRestore window over; goneline_id, state
line.replacedThe line's eSIM profile was reissuedline_id, state

Sandbox

With an sk_test_ key everything works against fake suppliers:

Versioning

The version is in the path (/v1). Within a version we only add: new endpoints, new optional request fields, new response fields, new event types and new error codes in new situations. Anything that would break an integration ships as /v2, with at least 6 months of overlap.

Catalog

GET/v1/catalog

Everything you can buy now, at your price. Query: country (ISO code, SKUs covering it), type (data or number).

200 OK
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "sku",
      "id": "fr-5gb-30d-12849b",
      "type": "data",
      "name": "France 5GB 30 Days",
      "location": "FR",
      "countries": [
        "FR"
      ],
      "data_bytes": 5368709120,
      "days": 30,
      "daily": false,
      "topup": true,
      "price_cents": 1125,
      "retail_cents": 1500,
      "currency": "EUR"
    },
    {
      "object": "sku",
      "id": "us-2gb-daily-6f0cf8",
      "type": "data",
      "name": "USA 2GB/day",
      "location": "US",
      "countries": [
        "US"
      ],
      "data_bytes": 2147483648,
      "days": 1,
      "daily": true,
      "fup_policy": "384 Kbps",
      "topup": true,
      "price_cents": 240,
      "retail_cents": 320,
      "currency": "EUR"
    },
    {
      "object": "sku",
      "id": "ee-number-1y",
      "type": "number",
      "name": "Estonian +372 number, 1 year",
      "location": "EE",
      "countries": [
        "EE"
      ],
      "days": 365,
      "daily": false,
      "topup": false,
      "price_cents": 2396,
      "retail_cents": 2995,
      "currency": "EUR"
    }
  ]
}

SKU ids are stable while the product exists; you may store them. A SKU that can no longer be supplied disappears from the list and orders for it return 422 sku_unavailable.

GET/v1/catalog/{sku}

One SKU, or 404.

Balance

GET/v1/balance
200 OK
{
  "object": "balance",
  "balance_cents": 42500,
  "spent_today_cents": 7500,
  "daily_spend_cap_cents": 50000,
  "available_today_cents": 42500,
  "low_balance_threshold_cents": 10000,
  "currency": "EUR",
  "livemode": true
}

Deposits

POST/v1/deposits
FieldType
amount_centsintegerRequired. 10000 to 1000000
idempotency_keystringRequired
201 Created
{
  "object": "deposit",
  "id": "dep_4oMx7Pq2LrZ9sV1tW3yA",
  "status": "pending",
  "amount_cents": 50000,
  "currency": "EUR",
  "payment_methods": [
    {
      "coin": "BTC",
      "address": "bc1q9h7garjxdsl3xke2m4lq0j4jcx9d3vq6p7r8tz",
      "amount": "0.00541",
      "due": "0.00541",
      "uri": "bitcoin:bc1q9h7garjxdsl3xke2m4lq0j4jcx9d3vq6p7r8tz?amount=0.00541"
    },
    {
      "coin": "XMR",
      "address": "84ZpVb3yXqJ1kZ8nW6TtR2hL9mC5dF7gH4jK1sA3qE8uY6vB2nM9xL5pQ7rT3wZ1cD8fG4hJ6kL2mN9pR5sT7vX3",
      "amount": "2.468731",
      "due": "2.468731",
      "uri": "monero:84ZpVb3yXqJ1kZ8nW6TtR2hL9mC5dF7gH4jK1sA3qE8uY6vB2nM9xL5pQ7rT3wZ1cD8fG4hJ6kL2mN9pR5sT7vX3?tx_amount=2.468731"
    }
  ],
  "expires_at": "2026-11-24T11:00:00Z",
  "created_at": "2026-11-24T10:00:00Z",
  "livemode": true
}
GET/v1/deposits/{id}

Status is pending, settled or expired.

Orders

POST/v1/orders
FieldType
skustringRequired. A data SKU or ee-number-1y
daysintegerDaily SKUs only, 1 to 365
referencestringOptional, up to 100 characters. Your own id, echoed in the order and its events
idempotency_keystringRequired
201 Created
{
  "object": "order",
  "id": "po_7QdLm2XvA9rT4kWb8NcE",
  "kind": "data",
  "status": "provisioning",
  "sku": "fr-5gb-30d-12849b",
  "days": 1,
  "price_cents": 1125,
  "currency": "EUR",
  "reference": "your-order-1001",
  "esim_id": "esim_Kp2Rz8WqT1mYc6VbN0Hd",
  "created_at": "2026-11-24T10:00:00Z",
  "livemode": true,
  "esim": {
    "object": "esim",
    "id": "esim_Kp2Rz8WqT1mYc6VbN0Hd",
    "order_id": "po_7QdLm2XvA9rT4kWb8NcE",
    "sku": "fr-5gb-30d-12849b",
    "status": "provisioning",
    "installed": false,
    "data_total_bytes": 0,
    "data_used_bytes": 0,
    "data_remaining_bytes": 0,
    "created_at": "2026-11-24T10:00:00Z",
    "livemode": true
  }
}

A number order returns ready with the line embedded. Errors to expect: 402 insufficient_balance, 403 daily_spend_cap_reached, 403 daily_line_cap_reached, 409 out_of_stock, 422 sku_unavailable.

GET/v1/orders

Newest first. Query: limit, after, status.

GET/v1/orders/{id}

The order, with its esim or line embedded. Failed, cancelled and held orders carry a status_detail sentence.

eSIMs

GET/v1/esims

Newest first. Query: limit, after, status.

GET/v1/esims/{id}
200 OK
{
  "object": "esim",
  "id": "esim_Kp2Rz8WqT1mYc6VbN0Hd",
  "order_id": "po_7QdLm2XvA9rT4kWb8NcE",
  "sku": "fr-5gb-30d-12849b",
  "status": "ready",
  "iccid": "89852240810733715322",
  "activation_code": "LPA:1$rsp.example.net$K2-1A2B3C-4D5E6F",
  "smdp_address": "rsp.example.net",
  "matching_id": "K2-1A2B3C-4D5E6F",
  "qr_code_url": "/v1/esims/esim_Kp2Rz8WqT1mYc6VbN0Hd/qr.png",
  "installed": true,
  "data_total_bytes": 5368709120,
  "data_used_bytes": 1288490188,
  "data_remaining_bytes": 4080218932,
  "activated_at": "2026-11-25T08:41:12Z",
  "expires_at": "2026-12-25T08:41:12Z",
  "created_at": "2026-11-24T10:00:00Z",
  "livemode": true
}
GET/v1/esims/{id}/qr.png

PNG of the activation code. Query: size (128 to 1024, default 512). 404 until the eSIM is ready.

GET/v1/esims/{id}/topups
200 OK
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "topup_option",
      "id": "tu_9f2c1a7b3e4d5c6b",
      "name": "France 3GB 30 Days",
      "data_bytes": 3221225472,
      "days": 30,
      "daily": false,
      "price_cents": 900,
      "retail_cents": 1200,
      "currency": "EUR"
    },
    {
      "object": "topup_option",
      "id": "tu_04be7d19a2c35f81",
      "name": "France 10GB 30 Days",
      "data_bytes": 10737418240,
      "days": 30,
      "daily": false,
      "price_cents": 1950,
      "retail_cents": 2600,
      "currency": "EUR"
    }
  ]
}
POST/v1/esims/{id}/topups
FieldType
optionstringRequired. An id from the list
daysintegerRequired for the extend option, 1 to 365
idempotency_keystringRequired

Returns the top-up order (kind data_topup), normally ready.

POST/v1/esims/{id}/cancel

No body. Returns the eSIM with status cancelled, or 409 not_cancellable.

Lines

GET/v1/lines

Newest first. Query: limit, after.

GET/v1/lines/{id}
200 OK
{
  "object": "line",
  "id": "line_c9XbT4mR7qZ2wL5nV8kP",
  "order_id": "po_3HxQ8vNm2KpL6tR9wYcB",
  "msisdn": "+37255512345",
  "state": "active",
  "iccid": "89372021234567890123",
  "activation_code": "LPA:1$smdp.example.ee$9F3A-27BC-11D4",
  "smdp_address": "smdp.example.ee",
  "matching_id": "9F3A-27BC-11D4",
  "qr_code_url": "/v1/lines/line_c9XbT4mR7qZ2wL5nV8kP/qr.png",
  "balance_cents": 1000,
  "currency": "EUR",
  "valid_until": "2027-11-24T10:00:00Z",
  "assigned_at": "2026-11-24T10:00:00Z",
  "livemode": true
}
GET/v1/lines/{id}/qr.png

PNG of the line's activation code. Not available while the line is reclaimed or released.

POST/v1/lines/{id}/credit
FieldType
amount_centsintegerRequired. Face value, 100 to 20000
idempotency_keystringRequired

Returns the credit order (kind number_credit, amount_cents = face value, price_cents = what you paid).

POST/v1/lines/{id}/renew

Body: {"idempotency_key": "..."}. Returns the renewal order; the embedded line has the new valid_until.

POST/v1/lines/{id}/restore

Body: {"idempotency_key": "..."}. Only for reclaimed lines. Returns the restore order with the line and its new activation code.

Events and webhook

GET/v1/events

Oldest first. Query: after (an event id; omit for the beginning), limit. Each item has the webhook body's shape.

GET/v1/webhook
200 OK
{
  "object": "webhook_endpoint",
  "url": "https://you.example/hooks",
  "events": [
    "order.ready",
    "order.failed",
    "topup.applied",
    "topup.failed",
    "esim.cancelled",
    "balance.low",
    "deposit.settled",
    "deposit.expired",
    "line.expiring",
    "line.lapsed",
    "line.reclaimed",
    "line.restored",
    "line.released",
    "line.replaced",
    "line.renewed",
    "line.credited"
  ]
}
PUT/v1/webhook

Body: {"url": "https://you.example/hooks"}, or {"url": ""} to turn webhooks off. The URL must be https on the standard port (443). One endpoint receives the events of both modes. The response includes the new secret, shown once.

Statements

GET/v1/statements/{month}

month is yyyy-mm (UTC). Add ?format=csv or Accept: text/csv for CSV.

200 OK
{
  "object": "statement",
  "month": "2026-11",
  "currency": "EUR",
  "opening_cents": 1000,
  "closing_cents": 10250,
  "deposits_cents": 10000,
  "spent_cents": 1500,
  "credited_cents": 750,
  "adjusted_cents": 0,
  "livemode": true,
  "entries": [
    {
      "id": 51,
      "at": "2026-11-02T12:00:00Z",
      "kind": "deposit",
      "amount_cents": 10000,
      "balance_after_cents": 11000,
      "ref_type": "deposit",
      "ref_id": "dep_4oMx7Pq2LrZ9sV1tW3yA",
      "note": "invoice 8xKq2"
    },
    {
      "id": 52,
      "at": "2026-11-02T12:05:00Z",
      "kind": "order_debit",
      "amount_cents": -750,
      "balance_after_cents": 10250,
      "ref_type": "order",
      "ref_id": "po_7QdLm2XvA9rT4kWb8NcE",
      "note": "data fr-5gb-30d-12849b"
    },
    {
      "id": 53,
      "at": "2026-11-02T12:06:00Z",
      "kind": "order_debit",
      "amount_cents": -750,
      "balance_after_cents": 9500,
      "ref_type": "order",
      "ref_id": "po_Bv5Nw2Lx8Qm1Rt4Yk7Zc",
      "note": "data fr-5gb-30d-12849b"
    },
    {
      "id": 54,
      "at": "2026-11-02T12:06:01Z",
      "kind": "failure_credit",
      "amount_cents": 750,
      "balance_after_cents": 10250,
      "ref_type": "order",
      "ref_id": "po_Bv5Nw2Lx8Qm1Rt4Yk7Zc",
      "note": "order not fulfilled"
    }
  ]
}

Entry kinds: deposit, order_debit, order_refund, failure_credit, adjustment. Every entry carries the balance after it, so a statement checks itself.