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 URL | https://api.simsup.net |
|---|---|
| Format | JSON request and response bodies, UTF-8 |
| Auth | Authorization: Bearer sk_live_... or sk_test_... |
| Products | Data eSIMs (by SKU), data top-ups, +372 numbers with a year of validity, number renewal, number credit |
| Payment | Prepaid 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
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
curl "https://api.simsup.net/v1/catalog?country=FR" \
-H "Authorization: Bearer $KEY"3. Order it
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.
- You can hold several keys per mode, and we can revoke any one at once. Ask for a rotation whenever a key may have leaked.
- Your account can be limited to a list of source IP addresses or ranges; the list applies to all your keys. Requests from elsewhere get
403 forbidden. - A missing, malformed, unknown or revoked key gets
401 unauthorized. A suspended account gets403 partner_suspended.
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 prices | Real | Same as live |
| Deposits | Paid in BTC or XMR | Settle immediately, no payment |
| eSIMs | Real profiles from the network | Fake profiles, ready about 5 seconds after ordering |
| Numbers | Real +372 numbers from stock | Fake numbers starting +372000, unlimited stock |
| Webhooks | One endpoint receives both modes' events, each marked with livemode. It must be https on port 443. | |
Conventions
- Ids are opaque strings with a type prefix:
po_order,esim_eSIM,line_number,dep_deposit,evt_event. Treat them as case-sensitive and up to 64 characters. - Money is integer cents with
"currency": "EUR".1234means 12.34 EUR. - Times are RFC 3339 in UTC, like
2026-11-24T10:00:00Z. Fields with no value are left out, never sent as zero or null. - Data volumes are bytes (
1073741824= 1 GiB). - Lists return
{"object":"list","data":[...],"has_more":bool,"next_cursor":"..."}, newest first (events: oldest first). Passnext_cursorasafterfor the next page;limitis 1 to 200, default 50. - Request bodies are strict: unknown fields are rejected with
400 invalid_request, so a typo fails loudly. - Every response carries an
X-Request-Idheader. Quote it when you contact us. - New fields may be added to responses at any time. Ignore what you do not know.
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.
- Sending the same key with the same body again returns the original result with
200and the headerIdempotent-Replayed: true. Nothing is charged twice, even if the two requests arrive at the same moment. - Sending the same key with a different body returns
409 idempotency_mismatch. - Keys belong to your account and mode, and are remembered for at least 24 hours.
- A request that failed with an error (insufficient balance, out of stock, invalid request) did not use its key. Fix the problem and retry with the same key.
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
{
"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.
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | Malformed or invalid input; the message says what |
| 401 | unauthorized | Key missing, malformed, unknown or revoked |
| 402 | insufficient_balance | Balance below the price; deposit and retry with the same key |
| 403 | forbidden | Source IP not on the key's allowlist |
| 403 | partner_suspended | Account suspended |
| 403 | daily_spend_cap_reached | The order would pass today's spend cap (resets 00:00 UTC) |
| 403 | daily_line_cap_reached | Daily limit on new numbers reached (resets 00:00 UTC) |
| 404 | not_found | No such resource in this account and mode, or no such endpoint |
| 409 | idempotency_mismatch | Key already used for a different request |
| 409 | out_of_stock | No numbers in stock right now; stock refills hourly |
| 409 | not_cancellable | eSIM installed, used, not yet delivered, or past the 14-day window |
| 409 | not_renewable | Line reclaimed or released |
| 409 | not_restorable | Line is not inside its restore window |
| 409 | topup_unavailable | eSIM not ready, not reloadable, or option not offered |
| 422 | sku_unavailable | SKU not in your catalog right now |
| 422 | amount_not_allowed | Line credit too small to sell; use a larger amount |
| 429 | rate_limited | Too many requests; wait Retry-After seconds |
| 500 | internal_error | Our fault; retry with the same idempotency key |
Limits
| Limit | Default | Notes |
|---|---|---|
| Request rate | 10 per second, bursts of 20 | Per account and mode; 429 with Retry-After |
| Daily spend | 500 EUR | Sum of today's purchases (UTC), not counting orders that failed and were refunded; raised on request |
| New numbers per day | 10 | Raised on request |
| Deposit | 100 to 10,000 EUR | Per deposit |
| Line credit | 1.00 to 200.00 EUR face value | Per request |
| Request body | 16 KiB |
GET /v1/balance shows how much you can still spend today in available_today_cents.
Balance and pricing
- Your price is our retail price less your discount, which may differ for data, numbers and line credit. The catalog shows both
price_cents(yours) andretail_cents(ours, for reference). You may sell at any price. - A purchase is debited the moment it is accepted. If it is not delivered, the full price goes back on your balance automatically and you get
order.failed. - A data eSIM that was never installed can be cancelled within 14 days for a full refund to your balance, including top-ups bought on it. Numbers are not refundable.
- Balance cannot be withdrawn. It stays on your account.
balance.lowfires once when your balance falls below your threshold (100 EUR unless agreed otherwise), and re-arms after a deposit lifts it back over.- Prices follow our catalog and can change; the price is fixed at the moment an order is accepted. A SKU disappears from your catalog if it can no longer be supplied at your price.
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.
| Status | Meaning | Next |
|---|---|---|
placing | Debited; the network is being asked | provisioning, ready, failed |
provisioning | Accepted; the eSIM is being issued (data only) | ready |
ready | Delivered | cancelled (data, if refunded) |
failed | Not delivered; price returned to your balance | final |
needs_review | The 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 |
cancelled | Delivered eSIM cancelled unused; refunded | final |
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
| State | Meaning | You can |
|---|---|---|
active | Paid up | credit, renew |
expiring_soon | Under 30 days left | credit, renew |
grace | Expired; still works for 30 days (grace_until) | credit, renew |
lapsed | Grace over; will be reclaimed soon | renew |
reclaimed | Taken back; restorable until restore_until (60 days) | restore |
released | Gone; the number may be reissued | nothing |
- Renew (
POST /v1/lines/{id}/renew) adds a year from the current expiry, or from today if it has passed. Nothing renews automatically. - Credit (
POST /v1/lines/{id}/credit) adds balance for calls, SMS and data on the line.amount_centsis the face value that lands on the line; you pay it less your credit discount. - Restore (
POST /v1/lines/{id}/restore) buys back a reclaimed line within its window: the same number on a new eSIM profile, with a fresh year. The old QR no longer works; deliver the new one. - When a line is reclaimed, its eSIM details are withheld until it is restored, and its remaining balance is not returned.
- We tell you at every step:
line.expiring(30 and 7 days before),line.lapsed,line.reclaimed,line.released. If a line's eSIM profile is reissued you getline.replaced; fetch the line for the new QR.
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:
POST /your/endpoint HTTP/1.1
Content-Type: application/json
Webhook-Id: evt_120
Webhook-Signature: t=1795000000,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd{
"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
- Answer any
2xxwithin 10 seconds to acknowledge. Anything else is retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h and 4 h (about 25 hours in all), then given up. - Deliveries can repeat and arrive out of order. Deduplicate on
id. - Every event, delivered or not, can be read from
GET /v1/events?after=evt_.... Polling it is a full substitute for webhooks.
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.
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)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
| Type | When | data |
|---|---|---|
order.ready | A data eSIM or number order is delivered | order_id, kind, status, esim_id or line_id, reference |
order.failed | An order was not delivered and was refunded | order_id, kind, status, reference |
topup.applied | A top-up landed | order_id, esim_id |
topup.failed | A top-up was refused and refunded | order_id, esim_id |
esim.cancelled | An eSIM was cancelled and refunded | esim_id, order_id, refund_cents |
deposit.settled | Funds credited | deposit_id, amount_cents, balance_cents |
deposit.expired | A deposit was not paid in time | deposit_id |
balance.low | Balance fell below your threshold | balance_cents, threshold_cents |
line.renewed | A renewal landed | order_id, line_id, valid_until |
line.credited | A credit landed | order_id, line_id, amount_cents |
line.restored | A restore landed | order_id, line_id |
line.expiring | 30 and 7 days before expiry | line_id, state, days_left, valid_until |
line.lapsed | Expired; grace period running | line_id, state, grace_until |
line.reclaimed | Taken back after grace | line_id, state, restore_until |
line.released | Restore window over; gone | line_id, state |
line.replaced | The line's eSIM profile was reissued | line_id, state |
Sandbox
With an sk_test_ key everything works against fake suppliers:
- Deposits settle immediately.
- Data eSIMs become ready about 5 seconds after ordering, with activation codes on
sandbox.invalid. They cannot be installed. - Daily plans offer the
extendtop-up; other plans offer a few sandbox top-ups. - Numbers come from an unlimited fake pool (
+372000...). - A line credit of exactly
1313cents is refused, so you can see afailedorder and its refund.
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
Everything you can buy now, at your price. Query: country (ISO code, SKUs covering it), type (data or number).
{
"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.
One SKU, or 404.
Balance
{
"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
| Field | Type | |
|---|---|---|
amount_cents | integer | Required. 10000 to 1000000 |
idempotency_key | string | Required |
{
"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
}Status is pending, settled or expired.
Orders
| Field | Type | |
|---|---|---|
sku | string | Required. A data SKU or ee-number-1y |
days | integer | Daily SKUs only, 1 to 365 |
reference | string | Optional, up to 100 characters. Your own id, echoed in the order and its events |
idempotency_key | string | Required |
{
"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.
Newest first. Query: limit, after, status.
The order, with its esim or line embedded. Failed, cancelled and held orders carry a status_detail sentence.
eSIMs
Newest first. Query: limit, after, status.
{
"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
}PNG of the activation code. Query: size (128 to 1024, default 512). 404 until the eSIM is ready.
{
"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"
}
]
}| Field | Type | |
|---|---|---|
option | string | Required. An id from the list |
days | integer | Required for the extend option, 1 to 365 |
idempotency_key | string | Required |
Returns the top-up order (kind data_topup), normally ready.
No body. Returns the eSIM with status cancelled, or 409 not_cancellable.
Lines
Newest first. Query: limit, after.
{
"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
}PNG of the line's activation code. Not available while the line is reclaimed or released.
| Field | Type | |
|---|---|---|
amount_cents | integer | Required. Face value, 100 to 20000 |
idempotency_key | string | Required |
Returns the credit order (kind number_credit, amount_cents = face value, price_cents = what you paid).
Body: {"idempotency_key": "..."}. Returns the renewal order; the embedded line has the new valid_until.
Body: {"idempotency_key": "..."}. Only for reclaimed lines. Returns the restore order with the line and its new activation code.
Events and webhook
Oldest first. Query: after (an event id; omit for the beginning), limit. Each item has the webhook body's shape.
{
"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"
]
}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
month is yyyy-mm (UTC). Add ?format=csv or Accept: text/csv for CSV.
{
"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.