{
    "info": {
        "name": "LastSim Reseller API",
        "description": "Token-authenticated JSON API for resellers.\n\nSet the `token` collection variable to your Sanctum token (ls_...). `baseUrl` defaults to the live server. Sandbox uses the exact same URL — your token is what picks the environment, so just swap `token` for a sandbox token instead of changing `baseUrl`.\n\nAll optional query parameters are DISABLED (unchecked) by default — enable only the ones you need.\n\n## Field conventions (all responses)\n\n- A resource's own identifier is always `id`; a reference to another resource is `{resource}_id` (e.g. `number_id`, `sms_id`, `order_id`).\n- Timestamps end in `_at` and are ISO 8601 in UTC (e.g. `2026-07-18T09:12:00+00:00`).\n- State booleans use an `is_` prefix (`is_activated`, `is_active`, `is_verified`).\n- Enum values are snake_case (`sms_in`, `virtual_number`, `provisioned`, `referral_profit`).\n- Money is a number rounded to 2 decimals, always paired with a `currency` field (always `\"USD\"`).\n- `metadata` is always a JSON object (`{}` when empty), never null.\n- Conditional fields are always present with `null` rather than omitted (e.g. a client always returns both `expires_at` and `purchased_at` — whichever one doesn't apply to its current status is `null`, never missing).\n- Paginated lists return `{ data: [...], meta: { current_page, per_page, total, total_pages } }`.\n- Renewal is uniform: every number is renewed with `months` (never a plan key). Each number's `renewal` object advertises valid durations — `allowed_months` (a discrete menu, for SMS Panel numbers) or `min_months`/`max_months` with `allowed_months: null` (any whole number in range, for DID numbers).\n- Errors return `{ error: { code, message, details? } }` with a machine-readable snake_case `code`.\n\n## Who owns the number?\n\nTwo different things answer \"who is this number for\", and you can use both:\n\n- **`metadata`** tags a number you own with your own reference. Your customer lives in your database and never sees LastSim.\n- **`clients`** (Clients folder) creates a real LastSim account for your customer. They own the number and sign in themselves with Telegram or Google; you pay from your wallet. It needs a one-time activation done on the website — check `clients.is_activated` on `GET /me` first. Sandbox supports clients with the same request and response; it is gated on the same activation, and a sandbox client's contact details are only checked against your own sandbox clients.\n\n`GET /numbers` lists numbers on your own account, so a client's numbers are not in it. Read those from `GET /clients/{id}/numbers`. `POST /numbers/{id}/renew` works for both your own numbers and a client's, by id — same for `/renew/quote`. Incoming SMS and webhooks only cover numbers on your own account; client-owned numbers don't appear in `GET /sms` and won't hit your webhook. `POST /numbers/{id}/auto-renew` is self-only (dashboard for clients).\n\nIdempotency-Key is required on POST /numbers/purchase, POST /numbers/{id}/renew, POST /numbers/renew, POST /sms, and POST /clients.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "token",
                "value": "{{token}}",
                "type": "string"
            }
        ]
    },
    "variable": [
        {
            "key": "baseUrl",
            "value": "https://sim.lastsim.co/api/v1/reseller",
            "type": "string"
        },
        {
            "key": "token",
            "value": "",
            "type": "string"
        }
    ],
    "item": [
        {
            "name": "Account",
            "item": [
                {
                    "name": "Token/account introspection",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/me",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "me"
                            ]
                        },
                        "description": "Confirm environment, abilities, rate_limit_tier / rate_limit_per_minute, allowlist (`allowed_ips`, IP or CIDR), and webhook state (`is_active`/`is_verified`) for this token. Response includes X-Request-ID. The `clients` block says whether this token can use client accounts: `is_activated` is false until the one-time activation is done on the website, and `activation` shows what is still outstanding. Both environments report the same thing — they hang off one account and the requirement is a real account rule sandbox does not fake."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/me",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "me"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"company_name\": \"Acme Telecom\",\n    \"status\": \"active\",\n    \"environment\": \"live\",\n    \"rate_limit_tier\": \"standard\",\n    \"rate_limit_per_minute\": 60,\n    \"allowed_ips\": [\n        \"203.0.113.5\",\n        \"2001:db8::/48\"\n    ],\n    \"token\": {\n        \"name\": \"prod\",\n        \"abilities\": [\n            \"numbers:read\",\n            \"numbers:purchase\",\n            \"sms:read\"\n        ],\n        \"last_used_at\": \"2026-07-18T09:12:00+00:00\"\n    },\n    \"webhook\": {\n        \"url\": \"https://reseller.example.com/lastsim-webhook\",\n        \"is_active\": true,\n        \"is_verified\": true\n    },\n    \"clients\": {\n        \"is_activated\": false,\n        \"activation\": {\n            \"deposited\": 120,\n            \"required\": 200,\n            \"remaining\": 80,\n            \"currency\": \"USD\"\n        }\n    }\n}"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Wallet",
            "item": [
                {
                    "name": "Get current wallet balance",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/wallet/balance",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "wallet",
                                "balance"
                            ]
                        }
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/wallet/balance",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "wallet",
                                        "balance"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"balance\": 142.50,\n  \"currency\": \"USD\"\n}"
                        }
                    ]
                },
                {
                    "name": "List wallet transaction history",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/wallet/transactions?since=2026-01-01&type=purchase&page=1&per_page=20",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "wallet",
                                "transactions"
                            ],
                            "query": [
                                {
                                    "key": "since",
                                    "value": "2026-01-01",
                                    "disabled": true,
                                    "description": "Only transactions on/after this date (PHP strtotime)."
                                },
                                {
                                    "key": "type",
                                    "value": "purchase",
                                    "disabled": true,
                                    "description": "Filter by type (snake_case). Live: charge, purchase, transfer_in, transfer_out, referral_profit, create_voucher_code. Sandbox: charge, purchase, or renewal."
                                },
                                {
                                    "key": "page",
                                    "value": "1",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "20",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Same filters as the web wallet history page. The `type` field is snake_case in both the filter and the response. Sandbox tokens get a real fake ledger, not a computed view — every sandbox top-up, purchase, and renewal writes a row here, filterable the same way (`since`/`type`) as the live table. Sandbox only ever produces three types: charge, purchase, renewal."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/wallet/transactions",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "wallet",
                                        "transactions"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"data\": [\n    {\n      \"id\": 9001,\n      \"type\": \"purchase\",\n      \"amount\": -12.50,\n      \"description\": \"Number purchase order #10\",\n      \"remaining\": 130.00,\n      \"created_at\": \"2026-07-18T09:00:00+00:00\"\n    }\n  ],\n  \"meta\": {\n    \"current_page\": 1,\n    \"per_page\": 20,\n    \"total\": 1,\n    \"total_pages\": 1\n  }\n}"
                        }
                    ]
                },
                {
                    "name": "Transfer wallet balance",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$randomUUID}}",
                                "description": "Required. A unique string per transfer attempt. Re-sending the same key replays the original result without debiting again."
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"recipient\": \"user@example.com\",\n  \"amount\": 10.00\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{baseUrl}}/wallet/transfer",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "wallet",
                                "transfer"
                            ]
                        },
                        "description": "Transfer balance from your wallet to another LastSim user. The recipient is identified by their registered email address or phone number (international format). Minimum transfer is $1.00. Live only — sandbox returns sandbox_not_supported. Requires wallet:transfer ability and an Idempotency-Key. Re-sending the same key replays the original result without debiting again."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Idempotency-Key",
                                        "value": "tr-abc123"
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"recipient\": \"user@example.com\",\n  \"amount\": 10.00\n}",
                                    "options": {
                                        "raw": {
                                            "language": "json"
                                        }
                                    }
                                },
                                "url": {
                                    "raw": "{{baseUrl}}/wallet/transfer",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "wallet",
                                        "transfer"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"sender_transaction_id\": 9120,\n  \"recipient_transaction_id\": 9121,\n  \"amount\": 10.00,\n  \"currency\": \"USD\",\n  \"wallet_balance_after\": 132.50,\n  \"recipient\": {\n    \"id\": 4401,\n    \"display_name\": \"Jane Smith\"\n  }\n}"
                        },
                        {
                            "name": "402 Insufficient Balance",
                            "originalRequest": {
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Idempotency-Key",
                                        "value": "tr-abc124"
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"recipient\": \"user@example.com\",\n  \"amount\": 200.00\n}",
                                    "options": {
                                        "raw": {
                                            "language": "json"
                                        }
                                    }
                                },
                                "url": {
                                    "raw": "{{baseUrl}}/wallet/transfer",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "wallet",
                                        "transfer"
                                    ]
                                }
                            },
                            "status": "Payment Required",
                            "code": 402,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"error\": {\n    \"code\": \"insufficient_balance\",\n    \"message\": \"Your wallet balance is insufficient for this transfer.\",\n    \"details\": {\n      \"required\": 200.00,\n      \"available\": 142.50,\n      \"currency\": \"USD\"\n    }\n  }\n}"
                        },
                        {
                            "name": "422 Recipient Not Found",
                            "originalRequest": {
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Idempotency-Key",
                                        "value": "tr-abc125"
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"recipient\": \"nobody@example.com\",\n  \"amount\": 5.00\n}",
                                    "options": {
                                        "raw": {
                                            "language": "json"
                                        }
                                    }
                                },
                                "url": {
                                    "raw": "{{baseUrl}}/wallet/transfer",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "wallet",
                                        "transfer"
                                    ]
                                }
                            },
                            "status": "Unprocessable Entity",
                            "code": 422,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"error\": {\n    \"code\": \"recipient_not_found\",\n    \"message\": \"User not found. Please make sure the user has already registered on the website.\"\n  }\n}"
                        }
                    ]
                },
                {
                    "name": "List wallet transfer history",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/wallet/transfers?page=1&per_page=20",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "wallet",
                                "transfers"
                            ],
                            "query": [
                                {
                                    "key": "page",
                                    "value": "1",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "20",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Returns your wallet transfer history — both transfers you sent (type: transfer_out) and transfers you received (type: transfer_in), newest first. Live only — sandbox returns sandbox_not_supported. Requires wallet:read ability."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/wallet/transfers",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "wallet",
                                        "transfers"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"data\": [\n    {\n      \"id\": 9120,\n      \"type\": \"transfer_out\",\n      \"amount\": -10.00,\n      \"currency\": \"USD\",\n      \"description\": \"Transfer to Jane Smith\",\n      \"remaining\": 132.50,\n      \"created_at\": \"2026-08-30T10:00:00+00:00\"\n    },\n    {\n      \"id\": 9050,\n      \"type\": \"transfer_in\",\n      \"amount\": 25.00,\n      \"currency\": \"USD\",\n      \"description\": \"Transfer from John Doe\",\n      \"remaining\": 142.50,\n      \"created_at\": \"2026-08-28T15:30:00+00:00\"\n    }\n  ],\n  \"meta\": {\n    \"current_page\": 1,\n    \"per_page\": 20,\n    \"total\": 2,\n    \"total_pages\": 1\n  }\n}"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Products",
            "item": [
                {
                    "name": "List countries with pricing labels",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/products",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "products"
                            ]
                        }
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/products",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "products"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"countries\": [\n    {\n      \"slug\": \"estonia\",\n      \"name\": \"Estonia\",\n      \"code\": \"EE\",\n      \"price_label\": \"from $3.00/mo\",\n      \"price_sublabel\": \"3 months · $9 total\"\n    }\n  ]\n}"
                        }
                    ]
                },
                {
                    "name": "List purchasable products for a country",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/products/:country",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "products",
                                ":country"
                            ],
                            "variable": [
                                {
                                    "key": "country",
                                    "value": "estonia"
                                }
                            ]
                        },
                        "description": "Standard products now support duration_months: 1 in every listed country. Non-Estonia one-month purchases cost 80% of the initial three-month total, rounded per number before quantity, with a floor of setup plus one normal month for unusually high setup fees. Setup is included. Estonia retains its existing prices. Use the catalogue and POST /numbers/quote for current amounts. price_per_month is the average initial purchase price, not a renewal rate. Manual Virtual Number renewals still require at least three months."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/products/estonia",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "products",
                                        "estonia"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"country\": \"Estonia\",\n  \"country_slug\": \"estonia\",\n  \"products\": [\n    {\n      \"product_id\": 1,\n      \"prefix\": \"372\",\n      \"type\": \"estonia\",\n      \"capabilities\": {\n        \"sms_in\": true,\n        \"call_forwarding\": true,\n        \"voicemail\": true\n      },\n      \"durations\": [\n        { \"months\": 1, \"price_per_month\": 9.9, \"total_price\": 9.9 },\n        { \"months\": 3, \"price_per_month\": 4, \"total_price\": 12 },\n        { \"months\": 6, \"price_per_month\": 3, \"total_price\": 18 },\n        { \"months\": 12, \"price_per_month\": 2.5, \"total_price\": 30 },\n        { \"months\": 24, \"price_per_month\": 2.04, \"total_price\": 49 },\n        { \"months\": 36, \"price_per_month\": 1.86, \"total_price\": 67 },\n        { \"months\": 48, \"price_per_month\": 1.75, \"total_price\": 84 },\n        { \"months\": 60, \"price_per_month\": 1.67, \"total_price\": 100 }\n      ],\n      \"quantity_limits\": { \"min\": 1, \"max\": 100 },\n      \"activate_now_default\": true,\n      \"activation_note\": \"Your paid period starts when the number activates, not at payment.\"\n    }\n  ]\n}"
                        },
                        {
                            "name": "200 OK — Canada (multiple products, one per prefix)",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/products/canada",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "products",
                                        "canada"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"country\": \"Canada\",\n  \"country_slug\": \"canada\",\n  \"products\": [\n    {\n      \"product_id\": 116,\n      \"prefix\": \"647\",\n      \"type\": \"mobile\",\n      \"capabilities\": {\n        \"sms_in\": true,\n        \"voice_in\": true,\n        \"sms_out\": true,\n        \"voice_out\": true\n      },\n      \"durations\": [\n        {\n          \"months\": 1,\n          \"price_per_month\": 9.6,\n          \"total_price\": 9.6\n        },\n        {\n          \"months\": 3,\n          \"price_per_month\": 4,\n          \"total_price\": 12\n        },\n        {\n          \"months\": 6,\n          \"price_per_month\": 3.5,\n          \"total_price\": 21\n        },\n        {\n          \"months\": 9,\n          \"price_per_month\": 3.33,\n          \"total_price\": 30\n        },\n        {\n          \"months\": 12,\n          \"price_per_month\": 3.25,\n          \"total_price\": 39\n        }\n      ],\n      \"quantity_limits\": {\n        \"min\": 1,\n        \"max\": 100\n      },\n      \"activate_now_default\": true,\n      \"activation_note\": \"Your paid period starts when the number activates, not at payment.\"\n    },\n    {\n      \"product_id\": 115,\n      \"prefix\": \"778\",\n      \"type\": \"mobile\",\n      \"capabilities\": {\n        \"sms_in\": true,\n        \"voice_in\": true,\n        \"sms_out\": true,\n        \"voice_out\": true\n      },\n      \"durations\": [\n        {\n          \"months\": 1,\n          \"price_per_month\": 9.6,\n          \"total_price\": 9.6\n        },\n        {\n          \"months\": 3,\n          \"price_per_month\": 4,\n          \"total_price\": 12\n        },\n        {\n          \"months\": 6,\n          \"price_per_month\": 3.5,\n          \"total_price\": 21\n        },\n        {\n          \"months\": 9,\n          \"price_per_month\": 3.33,\n          \"total_price\": 30\n        },\n        {\n          \"months\": 12,\n          \"price_per_month\": 3.25,\n          \"total_price\": 39\n        }\n      ],\n      \"quantity_limits\": {\n        \"min\": 1,\n        \"max\": 100\n      },\n      \"activate_now_default\": true,\n      \"activation_note\": \"Your paid period starts when the number activates, not at payment.\"\n    }\n  ]\n}"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Numbers",
            "item": [
                {
                    "name": "Purchase a number",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}",
                                "disabled": false,
                                "description": "Unique per logical request. Same key + same body replays the original result. Same key + different body → 409 idempotency_key_reused. Same key while the original request is still running → 409 idempotency_in_progress. Same key after the original request crashed mid-flight (rare) → 409 idempotency_indeterminate — do not retry automatically, poll order status or contact support."
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/numbers/purchase",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "numbers",
                                "purchase"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"product_id\": 1,\n  \"duration_months\": 3,\n  \"quantity\": 1,\n  \"activate_now\": true,\n  \"metadata\": {\n    \"customer_id\": \"422\"\n  }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "Requires an Idempotency-Key. Returns the order as a resource whose own id is `id`. Virtual Number products provision async → status stays `processing` (with `processing_started_at`) until a later poll of GET /numbers/purchase/{id} returns `provisioned` with the assigned numbers. Add an optional `client_id` to buy on behalf of a client account (Clients folder): that client owns the number, your wallet still pays. Works in sandbox too, against a sandbox client.\n\nStandard products now support duration_months: 1 in every listed country. Non-Estonia one-month purchases cost 80% of the initial three-month total, rounded per number before quantity, with a floor of setup plus one normal month for unusually high setup fees. Setup is included. Estonia retains its existing prices. Use the catalogue and POST /numbers/quote for current amounts. price_per_month is the average initial purchase price, not a renewal rate. Manual Virtual Number renewals still require at least three months. Orders with activate_now: true remain processing until every purchased number is assigned and activated. Partial deliveries and pending-activation placeholders are not provisioned."
                    },
                    "response": [
                        {
                            "name": "201 Created (Estonia, provisioned synchronously)",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/purchase",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "purchase"
                                    ]
                                }
                            },
                            "status": "Created",
                            "code": 201,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"id\": 10,\n    \"kind\": \"standard\",\n    \"client_id\": null,\n    \"status\": \"provisioned\",\n    \"numbers\": [\n        {\n            \"id\": 278,\n            \"number\": \"+3725512345\",\n            \"is_activated\": true\n        }\n    ],\n    \"metadata\": {\n        \"customer_id\": \"422\"\n    }\n}"
                        },
                        {
                            "name": "201 Created (Virtual Number, async — poll for the number)",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/purchase",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "purchase"
                                    ]
                                }
                            },
                            "status": "Created",
                            "code": 201,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"id\": 11,\n    \"kind\": \"standard\",\n    \"client_id\": null,\n    \"status\": \"processing\",\n    \"numbers\": [],\n    \"processing_started_at\": \"2026-07-18T09:20:00+00:00\",\n    \"metadata\": {}\n}"
                        },
                        {
                            "name": "402 Insufficient balance",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/purchase",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "purchase"
                                    ]
                                }
                            },
                            "status": "Payment Required",
                            "code": 402,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"error\": {\n    \"code\": \"insufficient_balance\",\n    \"message\": \"Wallet balance is insufficient for this purchase.\",\n    \"details\": {\n      \"required\": 9.00,\n      \"available\": 4.50,\n      \"currency\": \"USD\"\n    }\n  }\n}"
                        },
                        {
                            "name": "201 Created (bought for a client)",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/purchase",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "purchase"
                                    ]
                                }
                            },
                            "status": "Created",
                            "code": 201,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"id\": 12,\n    \"kind\": \"standard\",\n    \"client_id\": 41,\n    \"status\": \"provisioned\",\n    \"numbers\": [\n        {\n            \"id\": 302,\n            \"number\": \"+37255000061\",\n            \"is_activated\": true\n        }\n    ],\n    \"metadata\": {}\n}"
                        },
                        {
                            "name": "201 Created — one-month UK standard number (processing)",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/purchase",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "purchase"
                                    ]
                                },
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"product_id\": 112,\n  \"duration_months\": 1,\n  \"quantity\": 1,\n  \"activate_now\": true,\n  \"metadata\": {\n    \"customer_id\": \"422\"\n  }\n}",
                                    "options": {
                                        "raw": {
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Created",
                            "code": 201,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"id\": 11,\n    \"kind\": \"standard\",\n    \"client_id\": null,\n    \"status\": \"processing\",\n    \"numbers\": [],\n    \"processing_started_at\": \"2026-07-18T09:20:00+00:00\",\n    \"metadata\": {}\n}"
                        }
                    ]
                },
                {
                    "name": "Check purchase order status",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/numbers/purchase/:orderId",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "numbers",
                                "purchase",
                                ":orderId"
                            ],
                            "variable": [
                                {
                                    "key": "orderId",
                                    "value": "10"
                                }
                            ]
                        },
                        "description": " Also takes a premium order id (`prm_…`, from POST /premium-numbers/purchase); `kind` tells standard and premium orders apart. `status` can also be `failed` with a `failure_reason`, e.g. a cancelled premium order."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/purchase/10",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "purchase",
                                        "10"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"id\": 10,\n    \"kind\": \"standard\",\n    \"client_id\": null,\n    \"status\": \"provisioned\",\n    \"numbers\": [\n        {\n            \"id\": 278,\n            \"number\": \"+3725512345\",\n            \"is_activated\": true\n        }\n    ],\n    \"metadata\": {\n        \"customer_id\": \"422\"\n    }\n}"
                        }
                    ]
                },
                {
                    "name": "List the reseller's own orders",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/numbers/purchase?page=1&per_page=20&client_id=41",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "numbers",
                                "purchase"
                            ],
                            "query": [
                                {
                                    "key": "page",
                                    "value": "1",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "20",
                                    "disabled": true
                                },
                                {
                                    "key": "client_id",
                                    "value": "41",
                                    "disabled": true,
                                    "description": "Only orders bought for this client."
                                }
                            ]
                        },
                        "description": "Every order you placed, including ones bought for a client (where the client owns the order and you only paid). Each row is the same shape GET /numbers/purchase/{orderId} returns. Optional `client_id` narrows it to one client."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/purchase",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "purchase"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"data\": [\n        {\n            \"id\": \"prm_812\",\n            \"kind\": \"premium\",\n            \"client_id\": null,\n            \"status\": \"processing\",\n            \"numbers\": [],\n            \"processing_started_at\": \"2026-07-18T09:20:00+00:00\",\n            \"metadata\": {}\n        },\n        {\n            \"id\": 10,\n            \"kind\": \"standard\",\n            \"client_id\": null,\n            \"status\": \"provisioned\",\n            \"numbers\": [\n                {\n                    \"id\": 278,\n                    \"number\": \"+3725512345\",\n                    \"is_activated\": true\n                }\n            ],\n            \"metadata\": {\n                \"customer_id\": \"422\"\n            }\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"per_page\": 20,\n        \"total\": 2,\n        \"total_pages\": 1\n    }\n}"
                        }
                    ]
                },
                {
                    "name": "Preview purchase cost (no order, no charge)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/numbers/quote",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "numbers",
                                "quote"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"product_id\": 1,\n  \"duration_months\": 3,\n  \"quantity\": 1\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "Standard products now support duration_months: 1 in every listed country. Non-Estonia one-month purchases cost 80% of the initial three-month total, rounded per number before quantity, with a floor of setup plus one normal month for unusually high setup fees. Setup is included. Estonia retains its existing prices. Use the catalogue and POST /numbers/quote for current amounts. price_per_month is the average initial purchase price, not a renewal rate. Manual Virtual Number renewals still require at least three months. This endpoint creates no order and debits no wallet."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/quote",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "quote"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"product_id\": 1,\n  \"duration_months\": 3,\n  \"quantity\": 1,\n  \"total_price\": 12,\n  \"currency\": \"USD\"\n}"
                        },
                        {
                            "name": "200 OK — one-month UK standard number",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/quote",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "quote"
                                    ]
                                },
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"product_id\": 112,\n  \"duration_months\": 1,\n  \"quantity\": 1\n}",
                                    "options": {
                                        "raw": {
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"product_id\": 112,\n  \"duration_months\": 1,\n  \"quantity\": 1,\n  \"total_price\": 13.44,\n  \"currency\": \"USD\"\n}"
                        }
                    ]
                },
                {
                    "name": "List activated numbers",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/numbers?type=virtual_number&status=active&expiring_within_days=30&metadata_key=customer_id&metadata_value=422&page=1&per_page=20",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "numbers"
                            ],
                            "query": [
                                {
                                    "key": "type",
                                    "value": "virtual_number",
                                    "disabled": true,
                                    "description": "Filter by number type (e.g. virtual_number, physical_estonia)."
                                },
                                {
                                    "key": "status",
                                    "value": "active",
                                    "disabled": true,
                                    "description": "active | expired (by expires_at vs now)."
                                },
                                {
                                    "key": "expiring_within_days",
                                    "value": "30",
                                    "disabled": true,
                                    "description": "Only numbers expiring within this many days."
                                },
                                {
                                    "key": "metadata_key",
                                    "value": "customer_id",
                                    "disabled": true,
                                    "description": "Filter to numbers where this metadata key equals metadata_value."
                                },
                                {
                                    "key": "metadata_value",
                                    "value": "422",
                                    "disabled": true,
                                    "description": "Used together with metadata_key."
                                },
                                {
                                    "key": "page",
                                    "value": "1",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "20",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Same source as \"My Numbers\". Each item's own id is `id`; expiry is `expires_at`. Lists numbers on your own account only — numbers bought for a client belong to that client and are served by GET /clients/{id}/numbers instead."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"data\": [\n    {\n      \"id\": 278,\n      \"number\": \"+3725512345\",\n      \"type\": \"virtual_number\",\n      \"is_activated\": true,\n      \"expires_at\": \"2026-10-18T00:00:00+00:00\",\n      \"auto_renew\": false,\n      \"monthly_price\": 4.00,\n      \"renewal\": { \"min_months\": 3, \"max_months\": 60, \"allowed_months\": null },\n      \"sms_send_package\": null,\n      \"metadata\": {\n        \"customer_id\": \"422\"\n      }\n    }\n  ],\n  \"meta\": {\n    \"current_page\": 1,\n    \"per_page\": 20,\n    \"total\": 1,\n    \"total_pages\": 1\n  }\n}"
                        }
                    ]
                },
                {
                    "name": "Get a single number",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/numbers/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "numbers",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "278"
                                }
                            ]
                        }
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/278",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "278"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"id\": 278,\n  \"number\": \"+3725512345\",\n  \"type\": \"virtual_number\",\n  \"is_activated\": true,\n  \"expires_at\": \"2026-10-18T00:00:00+00:00\",\n  \"auto_renew\": false,\n  \"monthly_price\": 4.00,\n  \"renewal\": { \"min_months\": 3, \"max_months\": 60, \"allowed_months\": null },\n  \"sms_send_package\": null,\n  \"metadata\": {\n    \"customer_id\": \"422\"\n  }\n}"
                        }
                    ]
                },
                {
                    "name": "Renew a number",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}",
                                "disabled": false,
                                "description": "Unique per logical request. Same key + same body replays the original result. Same key + different body → 409 idempotency_key_reused. Same key while the original request is still running → 409 idempotency_in_progress. Same key after the original request crashed mid-flight (rare) → 409 idempotency_indeterminate — do not retry automatically, poll order status or contact support."
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/numbers/:id/renew",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "numbers",
                                ":id",
                                "renew"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "278"
                                }
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"months\": 3,\n  \"metadata\": {\n    \"customer_id\": \"422\"\n  }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "Renew a number you own, or one owned by a client — works by id either way, since you already have the id from GET /numbers or GET /clients/{id}/numbers. For a number you don't have the id for, use POST /numbers/renew (by phone number) instead. Send `months` for every number type; SMS Panel numbers only accept the values in their `renewal.allowed_months`. Requires an Idempotency-Key."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/278/renew",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "278",
                                        "renew"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"number_id\": 278,\n  \"number\": \"+3725512345\",\n  \"months\": 3,\n  \"expires_at\": \"2027-01-18T00:00:00+00:00\",\n  \"amount_charged\": 15.60,\n  \"currency\": \"USD\",\n  \"wallet_balance_after\": 126.90,\n  \"invoice_id\": 5502,\n  \"metadata\": {\n    \"customer_id\": \"422\"\n  }\n}"
                        }
                    ]
                },
                {
                    "name": "Renew any number by phone number",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}",
                                "disabled": false,
                                "description": "Required. Same replay/conflict/in-progress semantics as every other money endpoint."
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/numbers/renew",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "numbers",
                                "renew"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"number\": \"+12135559999\",\n    \"months\": 3\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "Renew any number by its phone number, no ownership check. Counterpart to the web's \"renew someone else's number\": pay for a renewal on a number that isn't yours or a client's. No id in the URL on purpose: there's no other endpoint that hands you a stranger's internal id, and ids are small sequential integers, so accepting one here would let a caller enumerate every number in the system. A phone number has to already be known to you. Works for sandbox tokens too, scoped to your own sandbox numbers (there's no other reseller's sandbox number to reach). Preview the charge first with POST /numbers/renew/quote. No metadata support: the response always returns metadata: {}. The charge hits your wallet; commission still follows whoever referred the number's owner (live only). Ability: numbers:purchase. Requires an Idempotency-Key."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/renew",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "renew"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"number_id\": 511,\n    \"number\": \"+12135559999\",\n    \"months\": 3,\n    \"expires_at\": \"2026-05-04T14:30:33+00:00\",\n    \"amount_charged\": 9,\n    \"currency\": \"USD\",\n    \"wallet_balance_after\": 482,\n    \"invoice_id\": 336,\n    \"metadata\": {}\n}"
                        },
                        {
                            "name": "404 Not found",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/renew",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "renew"
                                    ]
                                }
                            },
                            "status": "Not Found",
                            "code": 404,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"number_not_found\",\n        \"message\": \"Unknown number.\"\n    }\n}"
                        }
                    ]
                },
                {
                    "name": "Preview renewal cost by phone number",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/numbers/renew/quote",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "numbers",
                                "renew",
                                "quote"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"number\": \"+12135559999\",\n    \"months\": 3\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "Preview the renewal cost for any number you know by phone number, no charge. Same lookup and pricing as POST /numbers/renew. Use this when you don't have (or shouldn't use) an internal id. Response has no number_id; it includes the renewal object so you can constrain months without a GET. Ability: numbers:purchase or numbers:read. No Idempotency-Key. Sandbox: only your own sandbox numbers."
                    },
                    "response": [
                        {
                            "name": "200 OK (DID)",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/renew/quote",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "renew",
                                        "quote"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"number\": \"+12135559999\",\n  \"renewal\": {\n    \"min_months\": 3,\n    \"max_months\": 60,\n    \"allowed_months\": null\n  },\n  \"months\": 3,\n  \"monthly_price\": 3,\n  \"base_cost\": 9,\n  \"penalty\": 0,\n  \"total_cost\": 9,\n  \"currency\": \"USD\"\n}"
                        },
                        {
                            "name": "200 OK (SMS Panel)",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/renew/quote",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "renew",
                                        "quote"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"number\": \"+3725512345\",\n  \"renewal\": {\n    \"min_months\": 1,\n    \"max_months\": 60,\n    \"allowed_months\": [\n      1,\n      3,\n      6,\n      12,\n      36,\n      60\n    ]\n  },\n  \"months\": 3,\n  \"total_cost\": 15,\n  \"currency\": \"USD\"\n}"
                        },
                        {
                            "name": "404 Not found",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/renew/quote",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "renew",
                                        "quote"
                                    ]
                                }
                            },
                            "status": "Not Found",
                            "code": 404,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"error\": {\n    \"code\": \"number_not_found\",\n    \"message\": \"Unknown number.\"\n  }\n}"
                        }
                    ]
                },
                {
                    "name": "Preview renewal cost (no charge)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/numbers/:id/renew/quote",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "numbers",
                                ":id",
                                "renew",
                                "quote"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "278"
                                }
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"months\": 3\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "Preview the exact renewal cost, same body as renew (months, for every number type), no charge. Runs the same formula the charge itself uses. Works for a client's number the same way renew does: same id, same rules. For a number you don't have an id for, use POST /numbers/renew/quote instead. Ability: numbers:purchase or numbers:read. Works for sandbox tokens too."
                    },
                    "response": [
                        {
                            "name": "200 OK (DID)",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/278/renew/quote",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "278",
                                        "renew",
                                        "quote"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"number_id\": 278,\n  \"currency\": \"USD\",\n  \"months\": 3,\n  \"monthly_price\": 4.00,\n  \"base_cost\": 15.60,\n  \"penalty\": 0,\n  \"total_cost\": 15.60\n}"
                        }
                    ]
                },
                {
                    "name": "Buy or renew the SMS sending package (Estonia)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}",
                                "disabled": false,
                                "description": "Unique per logical request. Same key + same body replays the original result. Same key + different body → 409 idempotency_key_reused. Same key while the original request is still running → 409 idempotency_in_progress. Same key after the original request crashed mid-flight (rare) → 409 idempotency_indeterminate — do not retry automatically, poll order status or contact support."
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/numbers/:id/sms-package",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "numbers",
                                ":id",
                                "sms-package"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "302"
                                }
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"months\": 3\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "Estonia numbers can only send SMS (POST /sms) while their SMS sending package is active (the SMS Panel is not needed to send). This buys or extends the package: activation and renewal are the same call at the same price, so the package must be renewed before it expires. `months` must be one of the number's `sms_send_package.allowed_months` (currently 1, 3, 6, 12); anything else returns 422 invalid_duration with details.allowed_months. Time is added from the later of now and the current expiry. Works for your own numbers and a client's. Live only: sandbox returns 422 sandbox_not_supported, same as POST /sms. Ability: numbers:purchase. Requires an Idempotency-Key."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/302/sms-package",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "302",
                                        "sms-package"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"number_id\": 302,\n  \"number\": \"+37255000061\",\n  \"months\": 3,\n  \"expires_at\": \"2027-01-18T00:00:00+00:00\",\n  \"amount_charged\": 2.50,\n  \"currency\": \"USD\",\n  \"wallet_balance_after\": 126.90,\n  \"invoice_id\": 5503\n}"
                        }
                    ]
                },
                {
                    "name": "Preview SMS sending package cost (no charge)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/numbers/:id/sms-package/quote",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "numbers",
                                ":id",
                                "sms-package",
                                "quote"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "302"
                                }
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"months\": 3\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "Preview the cost of POST /numbers/:id/sms-package and when the package would expire afterwards, no charge. Same ownership rules and months validation as the purchase. Live only. Ability: numbers:purchase or numbers:read."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/302/sms-package/quote",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "302",
                                        "sms-package",
                                        "quote"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"number_id\": 302,\n  \"currency\": \"USD\",\n  \"months\": 3,\n  \"total_cost\": 2.50,\n  \"expires_at_after\": \"2027-01-18T00:00:00+00:00\"\n}"
                        }
                    ]
                },
                {
                    "name": "Set or replace a number's tag",
                    "request": {
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/numbers/:id/metadata",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "numbers",
                                ":id",
                                "metadata"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "278"
                                }
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"metadata\": {\n    \"customer_id\": \"422\"\n  }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "Full replace, not a merge. Send {} to clear. Response always returns `metadata` as an object ({} when cleared)."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "PUT",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/278/metadata",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "278",
                                        "metadata"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"number_id\": 278,\n  \"metadata\": {\n    \"customer_id\": \"422\"\n  }\n}"
                        }
                    ]
                },
                {
                    "name": "Enable or disable auto-renew",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/numbers/:id/auto-renew",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "numbers",
                                ":id",
                                "auto-renew"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "278"
                                }
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"auto_renew\": true\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "Enable or disable auto-renew for a number you own. Takes an explicit boolean, safe to call repeatedly. Live: available for Virtual Number (DID) and operator-approved SMS Panel numbers. Works for sandbox tokens too, with no operator-approval gate — sandbox never makes the real carrier call that approval depends on, so every sandbox number is eligible. Unlike renew, this one is self-only in both modes and does not accept a client's number id — auto-renew is a standing, open-ended wallet charge, not a one-off action, so enabling it for a client is left to the dashboard rather than a single API call."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/numbers/278/auto-renew",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "numbers",
                                        "278",
                                        "auto-renew"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"number_id\": 278,\n  \"auto_renew\": true\n}"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Premium numbers",
            "description": "Specific, memorable numbers sold one at a time at a fixed price: a one-time setup fee plus a monthly fee for 1 to 60 months. Bought for your own account, or for one of your clients with client_id (your wallet pays, the client owns the number). Our team hands the number over within 4 hours; the paid period starts then. In sandbox the stock is a fixed fake list and the hand-over takes about a minute.",
            "item": [
                {
                    "name": "List premium numbers",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/premium-numbers?country=CA&search=777&page=1&per_page=20",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "premium-numbers"
                            ],
                            "query": [
                                {
                                    "key": "country",
                                    "value": "CA",
                                    "description": "ISO 3166-1 alpha-2 country code.",
                                    "disabled": true
                                },
                                {
                                    "key": "search",
                                    "value": "777",
                                    "description": "Digits the number contains.",
                                    "disabled": true
                                },
                                {
                                    "key": "page",
                                    "value": "1",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "20",
                                    "description": "1 to 100.",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Numbers for sale right now. Ability: numbers:purchase or numbers:read."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/premium-numbers",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "premium-numbers"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"data\": [\n        {\n            \"number\": \"+14165557777\",\n            \"country\": \"Canada\",\n            \"country_iso\": \"CA\",\n            \"setup_price\": 45.0,\n            \"monthly_price\": 8.5,\n            \"currency\": \"USD\",\n            \"min_months\": 1,\n            \"max_months\": 60\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"per_page\": 20,\n        \"total\": 1,\n        \"total_pages\": 1\n    }\n}"
                        }
                    ]
                },
                {
                    "name": "Get a premium number",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/premium-numbers/+14165557777",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "premium-numbers",
                                "+14165557777"
                            ]
                        },
                        "description": "One number, same shape as a list row. Sold or never listed → 404 number_unavailable. Ability: numbers:purchase or numbers:read."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/premium-numbers/+14165557777",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "premium-numbers",
                                        "+14165557777"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"number\": \"+14165557777\",\n    \"country\": \"Canada\",\n    \"country_iso\": \"CA\",\n    \"setup_price\": 45.0,\n    \"monthly_price\": 8.5,\n    \"currency\": \"USD\",\n    \"min_months\": 1,\n    \"max_months\": 60\n}"
                        },
                        {
                            "name": "404 Not for sale",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/premium-numbers/+14165557777",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "premium-numbers",
                                        "+14165557777"
                                    ]
                                }
                            },
                            "status": "Not Found",
                            "code": 404,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"number_unavailable\",\n        \"message\": \"This premium number is not for sale (sold, or never listed).\"\n    }\n}"
                        }
                    ]
                },
                {
                    "name": "Preview premium number cost (no order, no charge)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/premium-numbers/quote",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "premium-numbers",
                                "quote"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"number\": \"+14165557777\",\n  \"months\": 12\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "What a purchase would charge. Ability: numbers:purchase or numbers:read."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/premium-numbers/quote",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "premium-numbers",
                                        "quote"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"number\": \"+14165557777\",\n    \"months\": 12,\n    \"setup_price\": 45.0,\n    \"monthly_price\": 8.5,\n    \"total_price\": 147.0,\n    \"currency\": \"USD\"\n}"
                        },
                        {
                            "name": "422 Duration out of range",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/premium-numbers/quote",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "premium-numbers",
                                        "quote"
                                    ]
                                }
                            },
                            "status": "Unprocessable Entity",
                            "code": 422,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"invalid_duration\",\n        \"message\": \"months must be between 1 and 60.\",\n        \"details\": {\n            \"min_months\": 1,\n            \"max_months\": 60\n        }\n    }\n}"
                        }
                    ]
                },
                {
                    "name": "Buy a premium number",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}",
                                "disabled": false,
                                "description": "Unique per logical request. Same key + same body replays the original result. Same key + different body → 409 idempotency_key_reused. Same key while the original request is still running → 409 idempotency_in_progress. Same key after the original request crashed mid-flight (rare) → 409 idempotency_indeterminate — do not retry automatically, poll order status or contact support."
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/premium-numbers/purchase",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "premium-numbers",
                                "purchase"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"number\": \"+14165557777\",\n  \"months\": 12,\n  \"metadata\": {\n    \"customer_id\": \"422\"\n  }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "Requires an Idempotency-Key. Charges the quoted total and returns the order as `processing`. Poll GET /numbers/purchase/{id} with its `prm_…` id; it turns `provisioned` once the number is on your account (within 4 hours). The number's expiry is the hand-over time plus the months bought, and metadata is copied onto it. A cancelled order turns `failed`. Add an optional `client_id` to buy for one of your clients: your wallet pays, the client owns the order and the number (it shows under GET /clients/{id}/numbers), and the order echoes `client_id`. The same Idempotency-Key with a different `client_id` is refused (409 idempotency_key_reused). Errors: 409 number_unavailable, 402 insufficient_balance (your wallet, never the client's), 422 invalid_duration, 404 client_not_found, 403 client_accounts_not_activated. Ability: numbers:purchase."
                    },
                    "response": [
                        {
                            "name": "201 Created (handed over later, poll for the number)",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/premium-numbers/purchase",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "premium-numbers",
                                        "purchase"
                                    ]
                                }
                            },
                            "status": "Created",
                            "code": 201,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"id\": \"prm_812\",\n    \"kind\": \"premium\",\n    \"client_id\": null,\n    \"status\": \"processing\",\n    \"numbers\": [],\n    \"processing_started_at\": \"2026-07-18T09:20:00+00:00\",\n    \"metadata\": {\n        \"customer_id\": \"422\"\n    }\n}"
                        },
                        {
                            "name": "409 Already sold",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/premium-numbers/purchase",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "premium-numbers",
                                        "purchase"
                                    ]
                                }
                            },
                            "status": "Conflict",
                            "code": 409,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"number_unavailable\",\n        \"message\": \"This premium number is no longer available.\"\n    }\n}"
                        },
                        {
                            "name": "402 Insufficient balance",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/premium-numbers/purchase",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "premium-numbers",
                                        "purchase"
                                    ]
                                }
                            },
                            "status": "Payment Required",
                            "code": 402,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"insufficient_balance\",\n        \"message\": \"Wallet balance is insufficient for this purchase.\",\n        \"details\": {\n            \"required\": 147.0,\n            \"available\": 40.0,\n            \"currency\": \"USD\"\n        }\n    }\n}"
                        },
                        {
                            "name": "404 Unknown client",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/premium-numbers/purchase",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "premium-numbers",
                                        "purchase"
                                    ]
                                }
                            },
                            "status": "Not Found",
                            "code": 404,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"client_not_found\",\n        \"message\": \"Unknown client for this account.\"\n    }\n}"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Round numbers",
            "description": "Specific numbers you pick inside a country's area (a city or number block). Price: the area's setup fee plus its monthly fee for 1 to 60 months, plus a one-time round_number_fee of $20.00. The number is ordered and registered in the background, usually within a minute or two. Bought for your own account, or for one of your clients with client_id (your wallet pays, the client owns the number). GET /round-numbers/countries lists where they are sold. Numbers are not paginated, because the inventory does not page: GET /round-numbers returns a sample of at most 10 matches and meta.total_count says how many match in all; narrow with area, search, region, type or features. Areas are paginated. Reads are limited to 20 a minute per token and can answer 503 catalog_unavailable with Retry-After. Areas that need identity or address registration are listed with requires_registration: true and can't be bought through the API. In sandbox the catalog is a short fixed list (US, CA, GB, EE) and the number arrives after about a minute. An area whose has_numbers is false (the UK mobile area, for example) lists no numbers: buy a random number from it by sending its area_id instead of number to the quote and purchase calls.",
            "item": [
                {
                    "name": "List round-number countries",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/round-numbers/countries",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "round-numbers",
                                "countries"
                            ],
                            "query": []
                        },
                        "description": "The countries round numbers are sold in, ordered by name. Use `country_iso` as the `country` of the other round-number calls. A local read, not counted against the catalog limit. Ability: numbers:purchase or numbers:read."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers/countries",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers",
                                        "countries"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"data\": [\n        {\n            \"country_iso\": \"CA\",\n            \"name\": \"Canada\"\n        },\n        {\n            \"country_iso\": \"GB\",\n            \"name\": \"United Kingdom\"\n        },\n        {\n            \"country_iso\": \"US\",\n            \"name\": \"United States\"\n        }\n    ]\n}"
                        }
                    ]
                },
                {
                    "name": "List round-number areas",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/round-numbers/areas?country=US&region=New York&type=Local&page=1&per_page=20&features=sms_in%2Csms_out",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "round-numbers",
                                "areas"
                            ],
                            "query": [
                                {
                                    "key": "country",
                                    "value": "US",
                                    "description": "ISO 3166-1 alpha-2 country code. Required."
                                },
                                {
                                    "key": "region",
                                    "value": "New York",
                                    "description": "A region name from an earlier row. Exact match; unknown names match nothing.",
                                    "disabled": true
                                },
                                {
                                    "key": "type",
                                    "value": "Local",
                                    "description": "A type name from an earlier row. Exact match.",
                                    "disabled": true
                                },
                                {
                                    "key": "features",
                                    "value": "sms_in,sms_out",
                                    "description": "Comma-separated, all required: voice_in, voice_out, sms_in, sms_out, t38. Order and case do not matter; anything else is 422.",
                                    "disabled": true
                                },
                                {
                                    "key": "page",
                                    "value": "1",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "20",
                                    "description": "1 to 50.",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "The areas a country has, paginated. Ability: numbers:purchase or numbers:read. features keeps areas that have all the capabilities listed. has_numbers is false when the area's numbers can't be listed one by one (it only sells a number of its choosing), so there is no number to pick there: buy a random number from it by sending its area_id (and no number) to the quote and purchase calls."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers/areas?country=US&region=New York&type=Local&page=1&per_page=20",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers",
                                        "areas"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"data\": [\n        {\n            \"area_id\": \"ar_ZHpKljzUmM59WzygFgOJ-KAZrNrwTiDz\",\n            \"name\": \"New York\",\n            \"prefix\": \"212\",\n            \"region\": \"New York\",\n            \"city\": \"New York\",\n            \"type\": \"Local\",\n            \"features\": [\n                \"voice_in\",\n                \"sms_in\"\n            ],\n            \"setup_price\": 2.1,\n            \"monthly_price\": 2.1,\n            \"currency\": \"USD\",\n            \"requires_registration\": false,\n            \"has_numbers\": true\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"per_page\": 20,\n        \"total\": 2193,\n        \"total_pages\": 110\n    }\n}"
                        },
                        {
                            "name": "422 Unknown country",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers/areas?country=US&region=New York&type=Local&page=1&per_page=20",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers",
                                        "areas"
                                    ]
                                }
                            },
                            "status": "Unprocessable Entity",
                            "code": 422,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"country_not_available\",\n        \"message\": \"Round numbers are not sold in this country.\"\n    }\n}"
                        }
                    ]
                },
                {
                    "name": "List round numbers",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/round-numbers?country=US&area=ar_ZHpKljzUmM59WzygFgOJ-KAZrNrwTiDz&search=7777&region=New York&type=Local&features=sms_in%2Csms_out",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "round-numbers"
                            ],
                            "query": [
                                {
                                    "key": "country",
                                    "value": "US",
                                    "description": "ISO 3166-1 alpha-2 country code. Required."
                                },
                                {
                                    "key": "area",
                                    "value": "ar_ZHpKljzUmM59WzygFgOJ-KAZrNrwTiDz",
                                    "description": "An area_id from the areas list. Opaque and 35 characters; do not parse it or keep it for long.",
                                    "disabled": true
                                },
                                {
                                    "key": "search",
                                    "value": "7777",
                                    "description": "Digits the number contains. At least 3.",
                                    "disabled": true
                                },
                                {
                                    "key": "region",
                                    "value": "New York",
                                    "disabled": true
                                },
                                {
                                    "key": "type",
                                    "value": "Local",
                                    "disabled": true
                                },
                                {
                                    "key": "features",
                                    "value": "sms_in,sms_out",
                                    "description": "Comma-separated, all required: voice_in, voice_out, sms_in, sms_out, t38. Order and case do not matter; anything else is 422.",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Numbers for sale, a sample of at most 10 that match. meta.total_count counts all matches; is_sample is true when more match than shown. Ability: numbers:purchase or numbers:read. features keeps numbers whose area has all the capabilities listed (see the param). It combines with area, search, region and type."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers?country=US&area=ar_ZHpKljzUmM59WzygFgOJ-KAZrNrwTiDz&search=7777&region=New York&type=Local",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"data\": [\n        {\n            \"number\": \"+12125557777\",\n            \"country\": \"United States\",\n            \"country_iso\": \"US\",\n            \"area\": \"New York\",\n            \"area_id\": \"ar_ZHpKljzUmM59WzygFgOJ-KAZrNrwTiDz\",\n            \"prefix\": \"212\",\n            \"features\": [\n                \"voice_in\",\n                \"sms_in\"\n            ],\n            \"setup_price\": 2.1,\n            \"monthly_price\": 2.1,\n            \"round_number_fee\": 20,\n            \"currency\": \"USD\",\n            \"min_months\": 1,\n            \"max_months\": 60,\n            \"requires_registration\": false\n        }\n    ],\n    \"meta\": {\n        \"count\": 1,\n        \"total_count\": 14,\n        \"is_sample\": true\n    }\n}"
                        },
                        {
                            "name": "422 Search too short",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers?country=US&area=ar_ZHpKljzUmM59WzygFgOJ-KAZrNrwTiDz&search=7777&region=New York&type=Local",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers"
                                    ]
                                }
                            },
                            "status": "Unprocessable Entity",
                            "code": 422,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"validation_failed\",\n        \"message\": \"search needs at least 3 digits.\",\n        \"details\": {\n            \"min_search_digits\": 3\n        }\n    }\n}"
                        },
                        {
                            "name": "422 Unknown feature",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers?country=US&area=ar_ZHpKljzUmM59WzygFgOJ-KAZrNrwTiDz&search=7777&region=New York&type=Local",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers"
                                    ]
                                }
                            },
                            "status": "Unprocessable Entity",
                            "code": 422,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"validation_failed\",\n        \"message\": \"features must be a comma-separated list of: voice_in, voice_out, sms_in, sms_out, t38.\",\n        \"details\": {\n            \"allowed_features\": [\n                \"voice_in\",\n                \"voice_out\",\n                \"sms_in\",\n                \"sms_out\",\n                \"t38\"\n            ]\n        }\n    }\n}"
                        },
                        {
                            "name": "503 Inventory busy",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers?country=US&area=ar_ZHpKljzUmM59WzygFgOJ-KAZrNrwTiDz&search=7777&region=New York&type=Local",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers"
                                    ]
                                }
                            },
                            "status": "Service Unavailable",
                            "code": 503,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                },
                                {
                                    "key": "Retry-After",
                                    "value": "5"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"catalog_unavailable\",\n        \"message\": \"Round number inventory is temporarily unavailable.\",\n        \"details\": {\n            \"retry_after\": 5\n        }\n    }\n}"
                        }
                    ]
                },
                {
                    "name": "Get a round number",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/round-numbers/+12125557777?country=US",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "round-numbers",
                                "+12125557777"
                            ],
                            "query": [
                                {
                                    "key": "country",
                                    "value": "US",
                                    "description": "ISO 3166-1 alpha-2 country code. Required."
                                }
                            ]
                        },
                        "description": "One number, same shape as a list row. The country is required. Sold or never listed → 404 number_unavailable. Ability: numbers:purchase or numbers:read."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers/+12125557777?country=US",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers",
                                        "+12125557777"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"number\": \"+12125557777\",\n    \"country\": \"United States\",\n    \"country_iso\": \"US\",\n    \"area\": \"New York\",\n    \"area_id\": \"ar_ZHpKljzUmM59WzygFgOJ-KAZrNrwTiDz\",\n    \"prefix\": \"212\",\n    \"features\": [\n        \"voice_in\",\n        \"sms_in\"\n    ],\n    \"setup_price\": 2.1,\n    \"monthly_price\": 2.1,\n    \"round_number_fee\": 20,\n    \"currency\": \"USD\",\n    \"min_months\": 1,\n    \"max_months\": 60,\n    \"requires_registration\": false\n}"
                        },
                        {
                            "name": "404 Not for sale",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers/+12125557777?country=US",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers",
                                        "+12125557777"
                                    ]
                                }
                            },
                            "status": "Not Found",
                            "code": 404,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"number_unavailable\",\n        \"message\": \"This round number is not for sale (sold, or never listed).\"\n    }\n}"
                        }
                    ]
                },
                {
                    "name": "Preview round number cost (no order, no charge)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/round-numbers/quote",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "round-numbers",
                                "quote"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"number\": \"+12125557777\",\n  \"country\": \"US\",\n  \"months\": 12\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "What a purchase would charge. Ability: numbers:purchase or numbers:read. Send area_id (instead of number and country) to price a random number from an area: no round_number_fee and `number` is null. 404 area_not_found for an unknown area_id."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers/quote",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers",
                                        "quote"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"number\": \"+12125557777\",\n    \"country_iso\": \"US\",\n    \"months\": 12,\n    \"setup_price\": 2.1,\n    \"monthly_price\": 2.1,\n    \"round_number_fee\": 20,\n    \"total_price\": 47.3,\n    \"currency\": \"USD\",\n    \"requires_registration\": false\n}"
                        },
                        {
                            "name": "422 Duration out of range",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers/quote",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers",
                                        "quote"
                                    ]
                                }
                            },
                            "status": "Unprocessable Entity",
                            "code": 422,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"invalid_duration\",\n        \"message\": \"months must be between 1 and 60.\",\n        \"details\": {\n            \"min_months\": 1,\n            \"max_months\": 60\n        }\n    }\n}"
                        },
                        {
                            "name": "200 OK (random number from an area)",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers/quote",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers",
                                        "quote"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"number\": null,\n    \"random\": true,\n    \"area_id\": \"ar_ZHpKljzUmM59WzygFgOJ-KAZrNrwTiDz\",\n    \"area\": \"Mobile\",\n    \"country_iso\": \"GB\",\n    \"months\": 3,\n    \"setup_price\": 4.14,\n    \"monthly_price\": 4.14,\n    \"round_number_fee\": 0,\n    \"total_price\": 16.56,\n    \"currency\": \"USD\",\n    \"requires_registration\": false\n}"
                        },
                        {
                            "name": "404 Unknown area",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers/quote",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers",
                                        "quote"
                                    ]
                                }
                            },
                            "status": "Not Found",
                            "code": 404,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"area_not_found\",\n        \"message\": \"Unknown area.\"\n    }\n}"
                        }
                    ]
                },
                {
                    "name": "Buy a round number",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}",
                                "disabled": false,
                                "description": "Unique per logical request. Same key + same body replays the original result. Same key + different body → 409 idempotency_key_reused. Same key while the original request is still running → 409 idempotency_in_progress. Same key after the original request crashed mid-flight (rare) → 409 idempotency_indeterminate — do not retry automatically, poll order status or contact support."
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/round-numbers/purchase",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "round-numbers",
                                "purchase"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"number\": \"+12125557777\",\n  \"country\": \"US\",\n  \"months\": 12,\n  \"max_total\": 50.0,\n  \"metadata\": {\n    \"customer_id\": \"422\"\n  }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "Requires an Idempotency-Key. Charges the total and returns the order as `processing`. Poll GET /numbers/purchase/{id} with its `rnd_…` id; it turns `provisioned` once the number is on your account, normally within a couple of minutes, or `failed` if the number could not be ordered (contact support with the order id). Send area_id (instead of number and country) to buy a random number from an area: no round_number_fee, `numbers` stays empty until the supplier delivers one, and the Idempotency-Key is bound to the area. max_total is optional: a higher price now returns 409 price_changed and charges nothing. metadata is copied onto the number. Add an optional `client_id` to buy for one of your clients: your wallet pays, the client owns the order and the number (it shows under GET /clients/{id}/numbers), and the order echoes `client_id`. The same Idempotency-Key with a different `client_id` is refused (409 idempotency_key_reused). Errors: 409 number_unavailable, 409 price_changed, 402 insufficient_balance (your wallet, never the client's), 422 registration_required, 422 country_not_available, 422 invalid_duration, 404 client_not_found, 404 area_not_found (random), 403 client_accounts_not_activated, 503 catalog_unavailable (retry the same key). Ability: numbers:purchase."
                    },
                    "response": [
                        {
                            "name": "201 Created (poll for the number)",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers/purchase",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers",
                                        "purchase"
                                    ]
                                }
                            },
                            "status": "Created",
                            "code": 201,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"id\": \"rnd_903\",\n    \"kind\": \"round\",\n    \"client_id\": null,\n    \"status\": \"processing\",\n    \"numbers\": [],\n    \"processing_started_at\": \"2026-10-23T09:20:00+00:00\",\n    \"metadata\": {\n        \"customer_id\": \"422\"\n    }\n}"
                        },
                        {
                            "name": "201 Created (random number from an area)",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers/purchase",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers",
                                        "purchase"
                                    ]
                                },
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n    \"area_id\": \"ar_ZHpKljzUmM59WzygFgOJ-KAZrNrwTiDz\",\n    \"months\": 3,\n    \"max_total\": 20.0,\n    \"metadata\": {\n        \"customer_id\": \"422\"\n    }\n}",
                                    "options": {
                                        "raw": {
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Created",
                            "code": 201,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"id\": \"rnd_905\",\n    \"kind\": \"round\",\n    \"client_id\": null,\n    \"status\": \"processing\",\n    \"numbers\": [],\n    \"processing_started_at\": \"2026-10-30T11:40:00+00:00\",\n    \"metadata\": {\n        \"customer_id\": \"422\"\n    }\n}"
                        },
                        {
                            "name": "409 Already sold",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers/purchase",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers",
                                        "purchase"
                                    ]
                                }
                            },
                            "status": "Conflict",
                            "code": 409,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"number_unavailable\",\n        \"message\": \"This round number is no longer available.\"\n    }\n}"
                        },
                        {
                            "name": "409 Price went up",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers/purchase",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers",
                                        "purchase"
                                    ]
                                }
                            },
                            "status": "Conflict",
                            "code": 409,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"price_changed\",\n        \"message\": \"The price changed since you quoted it.\",\n        \"details\": {\n            \"total_price\": 52.3,\n            \"max_total\": 50,\n            \"currency\": \"USD\"\n        }\n    }\n}"
                        },
                        {
                            "name": "402 Insufficient balance",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers/purchase",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers",
                                        "purchase"
                                    ]
                                }
                            },
                            "status": "Payment Required",
                            "code": 402,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"insufficient_balance\",\n        \"message\": \"Wallet balance is insufficient for this purchase.\",\n        \"details\": {\n            \"required\": 47.3,\n            \"available\": 10,\n            \"currency\": \"USD\"\n        }\n    }\n}"
                        },
                        {
                            "name": "422 Needs registration",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers/purchase",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers",
                                        "purchase"
                                    ]
                                }
                            },
                            "status": "Unprocessable Entity",
                            "code": 422,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"registration_required\",\n        \"message\": \"This number requires identity or address registration and cannot be bought through the API.\"\n    }\n}"
                        },
                        {
                            "name": "503 Inventory busy (nothing charged, retry the same key)",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers/purchase",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers",
                                        "purchase"
                                    ]
                                }
                            },
                            "status": "Service Unavailable",
                            "code": 503,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"catalog_unavailable\",\n        \"message\": \"Round number inventory is temporarily unavailable. Retry shortly.\",\n        \"details\": {\n            \"retry_after\": 5\n        }\n    }\n}"
                        },
                        {
                            "name": "404 Unknown area (random)",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/round-numbers/purchase",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "round-numbers",
                                        "purchase"
                                    ]
                                }
                            },
                            "status": "Not Found",
                            "code": 404,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"area_not_found\",\n        \"message\": \"Unknown area.\"\n    }\n}"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Clients",
            "description": "Create a real LastSim account for your customer. You pay from your wallet, they own the number, and they sign in themselves with Telegram or Google. The dashboard calls this Managed Purchases.\n\nIf you would rather your customer never sees LastSim, don't use this — buy on your own account and tag the number with `metadata`.\n\nNeeds a one-time activation done on the website: it unlocks once lifetime wallet top-ups via USDT or PayPal reach $200, then never re-locks. `GET /me` tells you whether it is done and what is outstanding.\n\nSandbox supports all of this with the same request and response. Two things to know: the activation gate applies there too (it is a real account rule, not something sandbox fakes), and a sandbox client's mobile/email is only checked against your own sandbox clients — live also checks every real LastSim account, so a contact sandbox accepts can still come back `client_contact_taken` in live.",
            "item": [
                {
                    "name": "Create a client",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}",
                                "disabled": false,
                                "description": "Required. No money moves here, but a lost response on a create is worse than most: the retry would hit the \"an account with this mobile already exists\" guard against the account you just made. Same key + same body replays the original result. Same key + different body → 409 idempotency_key_reused. Same key while the original is still running → 409 idempotency_in_progress. Same key after a mid-flight crash → 409 idempotency_indeterminate — do not retry automatically, list your clients or contact support."
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/clients",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "clients"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"mobile\": \"+37255001234\",\n    \"email\": \"jane.roe@gmail.com\",\n    \"display_name\": \"Jane Roe\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "Send `mobile`, `email`, or both — at least one is required. Mobile enables the Telegram bot, email enables Google sign-in, and the email must be a Gmail/Googlemail address. Neither value may already belong to a LastSim account (in sandbox: to one of your own sandbox clients). A client with no purchase is deleted 3 days after creation; `expires_at` is that deadline, and buying for them clears it. There is a daily cap on creations (429 client_creation_limit_reached). Ability: clients:write."
                    },
                    "response": [
                        {
                            "name": "201 Created",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/clients",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "clients"
                                    ]
                                }
                            },
                            "status": "Created",
                            "code": 201,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"id\": 41,\n    \"mobile\": \"+37255001234\",\n    \"email\": \"jane.roe@gmail.com\",\n    \"display_name\": \"Jane Roe\",\n    \"status\": \"pending\",\n    \"created_at\": \"2026-08-15T09:20:11+00:00\",\n    \"expires_at\": \"2026-08-18T09:20:11+00:00\",\n    \"purchased_at\": null\n}"
                        },
                        {
                            "name": "403 Not activated",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/clients",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "clients"
                                    ]
                                }
                            },
                            "status": "Forbidden",
                            "code": 403,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"client_accounts_not_activated\",\n        \"message\": \"Client accounts have not been activated for this account. Activation is a one-time step and is done on the website, not through the API. It applies to sandbox as well, since it is a real account rule and not something sandbox fakes.\",\n        \"details\": {\n            \"deposited\": 120,\n            \"required\": 200,\n            \"remaining\": 80,\n            \"currency\": \"USD\"\n        }\n    }\n}"
                        },
                        {
                            "name": "422 Contact already taken",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/clients",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "clients"
                                    ]
                                }
                            },
                            "status": "Unprocessable Content",
                            "code": 422,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"client_contact_taken\",\n        \"message\": \"An account with this mobile number already exists.\"\n    }\n}"
                        },
                        {
                            "name": "422 Non-Gmail address",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/clients",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "clients"
                                    ]
                                }
                            },
                            "status": "Unprocessable Content",
                            "code": 422,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"invalid_client_email\",\n        \"message\": \"Only Gmail addresses are supported for this login method.\"\n    }\n}"
                        },
                        {
                            "name": "429 Daily creation cap",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/clients",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "clients"
                                    ]
                                }
                            },
                            "status": "Too Many Requests",
                            "code": 429,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"client_creation_limit_reached\",\n        \"message\": \"You can create up to 50 clients per day. Contact support if you need a higher limit.\",\n        \"details\": {\n            \"limit\": 50\n        }\n    }\n}"
                        }
                    ]
                },
                {
                    "name": "List clients",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/clients?status=active&page=1&per_page=20",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "clients"
                            ],
                            "query": [
                                {
                                    "key": "status",
                                    "value": "active",
                                    "disabled": true,
                                    "description": "pending | active"
                                },
                                {
                                    "key": "page",
                                    "value": "1",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "20",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Your clients, newest first. A client is `pending` until you buy something for them, then `active`. An active client has no deletion deadline, so `expires_at` is null. Ability: clients:read."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/clients",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "clients"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"data\": [\n        {\n            \"id\": 41,\n            \"mobile\": \"+37255001234\",\n            \"email\": \"jane.roe@gmail.com\",\n            \"display_name\": \"Jane Roe\",\n            \"status\": \"active\",\n            \"created_at\": \"2026-08-15T09:20:11+00:00\",\n            \"expires_at\": null,\n            \"purchased_at\": \"2026-08-15T09:24:03+00:00\"\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"per_page\": 20,\n        \"total\": 1,\n        \"total_pages\": 1\n    }\n}"
                        }
                    ]
                },
                {
                    "name": "Get a client",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/clients/41",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "clients",
                                "41"
                            ]
                        },
                        "description": "One client, same fields as a row of the list. An id belonging to another account returns 404 client_not_found. Ability: clients:read."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/clients/41",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "clients",
                                        "41"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"id\": 41,\n    \"mobile\": \"+37255001234\",\n    \"email\": \"jane.roe@gmail.com\",\n    \"display_name\": \"Jane Roe\",\n    \"status\": \"active\",\n    \"created_at\": \"2026-08-15T09:20:11+00:00\",\n    \"expires_at\": null,\n    \"purchased_at\": \"2026-08-15T09:24:03+00:00\"\n}"
                        },
                        {
                            "name": "404 Not found",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/clients/41",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "clients",
                                        "41"
                                    ]
                                }
                            },
                            "status": "Not Found",
                            "code": 404,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"error\": {\n        \"code\": \"client_not_found\",\n        \"message\": \"Unknown client for this account.\"\n    }\n}"
                        }
                    ]
                },
                {
                    "name": "List a client's numbers",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/clients/41/numbers?type=virtual_number&status=active&expiring_within_days=30&metadata_key=customer_id&metadata_value=422&page=1&per_page=20",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "clients",
                                "41",
                                "numbers"
                            ],
                            "query": [
                                {
                                    "key": "type",
                                    "value": "virtual_number",
                                    "disabled": true,
                                    "description": "Filter by number type (e.g. virtual_number, physical_estonia)."
                                },
                                {
                                    "key": "status",
                                    "value": "active",
                                    "disabled": true,
                                    "description": "active | expired (by expires_at vs now)."
                                },
                                {
                                    "key": "expiring_within_days",
                                    "value": "30",
                                    "disabled": true,
                                    "description": "Only numbers expiring within this many days."
                                },
                                {
                                    "key": "metadata_key",
                                    "value": "customer_id",
                                    "disabled": true,
                                    "description": "Filter to numbers where this metadata key equals metadata_value."
                                },
                                {
                                    "key": "metadata_value",
                                    "value": "422",
                                    "disabled": true,
                                    "description": "Used together with metadata_key."
                                },
                                {
                                    "key": "page",
                                    "value": "1",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "20",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "The numbers this client owns, in the same shape as GET /numbers — including the same filters: type, status, expiring_within_days, metadata_key + metadata_value. Renew any of these the same way you'd renew your own: POST /numbers/{id}/renew and /renew/quote both accept a client's number id. Their inbound SMS won't appear in GET /sms or hit your webhook. Ability: clients:read."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/clients/41/numbers",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "clients",
                                        "41",
                                        "numbers"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n    \"data\": [\n        {\n            \"id\": 302,\n            \"number\": \"+37255000061\",\n            \"type\": \"physical_estonia\",\n            \"is_activated\": true,\n            \"expires_at\": \"2026-11-15T00:00:00+00:00\",\n            \"auto_renew\": false,\n            \"monthly_price\": 4,\n            \"renewal\": {\n                \"min_months\": 1,\n                \"max_months\": 60,\n                \"allowed_months\": [\n                    1,\n                    3,\n                    6,\n                    12,\n                    36,\n                    60\n                ]\n            },\n            \"sms_send_package\": {\n              \"active\": true,\n              \"expires_at\": \"2026-12-18T00:00:00+00:00\",\n              \"allowed_months\": [1, 3, 6, 12],\n              \"can_send\": true,\n              \"blocked_reason\": null\n            },\n            \"metadata\": {}\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"per_page\": 20,\n        \"total\": 1,\n        \"total_pages\": 1\n    }\n}"
                        }
                    ]
                }
            ]
        },
        {
            "name": "SMS",
            "item": [
                {
                    "name": "List SMS messages",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/sms?number=&type=sms_in&since=&page=1&per_page=20",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "sms"
                            ],
                            "query": [
                                {
                                    "key": "number",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Filter by source or destination number (partial match)."
                                },
                                {
                                    "key": "type",
                                    "value": "sms_in",
                                    "disabled": true,
                                    "description": "Filter by direction: sms_in | sms_out."
                                },
                                {
                                    "key": "since",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Only messages on/after this time (PHP strtotime)."
                                },
                                {
                                    "key": "page",
                                    "value": "1",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "20",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Incoming SMS for numbers on your own account — not client-owned numbers (see collection intro, Who owns the number?). Ability: sms:read. Poll with since to fetch only new messages; also useful if a webhook delivery is missed."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/sms",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "sms"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"data\": [\n    {\n      \"id\": 5501,\n      \"type\": \"sms_in\",\n      \"source\": \"+491761234567\",\n      \"destination\": \"+3725512345\",\n      \"message\": \"Hello\",\n      \"received_at\": \"2026-07-18T08:00:00+00:00\"\n    }\n  ],\n  \"meta\": {\n    \"current_page\": 1,\n    \"per_page\": 20,\n    \"total\": 1,\n    \"total_pages\": 1\n  }\n}"
                        }
                    ]
                },
                {
                    "name": "Send an outbound SMS",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}",
                                "disabled": false,
                                "description": "Unique per logical request. Same key + same body replays the original result. Same key + different body → 409 idempotency_key_reused. Same key while the original request is still running → 409 idempotency_in_progress. Same key after the original request crashed mid-flight (rare) → 409 idempotency_indeterminate — do not retry automatically; ask GET /sms/status with the same key, or contact support."
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/sms",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "sms"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"source\": \"12135550100\",\n  \"destination\": \"+491761234567\",\n  \"message\": \"Hello from LastSim\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "Money endpoint — requires sms:send + Idempotency-Key. Not supported for sandbox tokens. The created message is referenced via `sms_id`. You are charged only for a message the carrier accepted; a refusal is `502 gateway_failed` with no debit and the same key stays usable. If the request times out and no `sms_id` came back, call `GET /sms/status?idempotency_key=…` with the same key."
                    },
                    "response": [
                        {
                            "name": "201 Created",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/sms",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "sms"
                                    ]
                                }
                            },
                            "status": "Created",
                            "code": 201,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"sms_id\": 5502,\n  \"source\": \"12135550100\",\n  \"destination\": \"+491761234567\",\n  \"message\": \"Hello from LastSim\",\n  \"parts\": 1,\n  \"amount_charged\": 0.05,\n  \"currency\": \"USD\",\n  \"wallet_balance_after\": 126.85\n}"
                        }
                    ]
                },
                {
                    "name": "Quote an outbound SMS",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/sms/quote",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "sms",
                                "quote"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"source\": \"37257447282\",\n  \"destination\": \"+491761234567\",\n  \"message\": \"Hello from LastSim\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "Preview what POST /sms would charge for this message, with nothing sent or debited. Needs sms:send or sms:read; no Idempotency-Key. Prices through the same code the send uses, so total_cost is the amount a send would debit. `source` is required because the price depends on the number the message leaves from (Estonian numbers use their own carrier tariff, every other number the standard one); it is checked the same way POST /sms checks it (source_not_eligible, sms_package_required, sms_package_expired). Other errors: invalid_destination, no_rate. Not supported for sandbox tokens."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/sms/quote",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "sms",
                                        "quote"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"source\": \"37257447282\",\n  \"destination\": \"+491761234567\",\n  \"country\": \"Germany\",\n  \"encoding\": \"gsm7\",\n  \"parts\": 1,\n  \"rate_per_part\": 0.174,\n  \"total_cost\": 0.17,\n  \"currency\": \"USD\"\n}"
                        }
                    ]
                },
                {
                    "name": "Look up a send by its Idempotency-Key",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/sms/status?idempotency_key=",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "sms",
                                "status"
                            ],
                            "query": [
                                {
                                    "key": "idempotency_key",
                                    "value": "",
                                    "description": "The Idempotency-Key the POST /sms was sent with."
                                }
                            ]
                        },
                        "description": "What became of a POST /sms that never answered. Needs sms:send or sms:read. `state`: `sent` (carrier accepted, charged), `processing` (still running), `not_sent` (died before the carrier; not charged; resend with a NEW key), `unknown` (died after the message was recorded, before the carrier answered; may have gone out; not charged; do not resend, contact support with sms_id). `404 idempotency_key_not_found`: nothing sent, nothing charged, same key usable again. Records are kept 7 days. Not supported for sandbox tokens."
                    },
                    "response": [
                        {
                            "name": "200 OK (sent)",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/sms/status?idempotency_key=9b2f0e10-3333-4c1d-8b22-1a1a1a1a1a1a",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "sms",
                                        "status"
                                    ],
                                    "query": [
                                        {
                                            "key": "idempotency_key",
                                            "value": "9b2f0e10-3333-4c1d-8b22-1a1a1a1a1a1a"
                                        }
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"idempotency_key\": \"9b2f0e10-3333-4c1d-8b22-1a1a1a1a1a1a\",\n  \"state\": \"sent\",\n  \"charged\": true,\n  \"sms_id\": 5510,\n  \"amount_charged\": 0.05,\n  \"currency\": \"USD\"\n}"
                        },
                        {
                            "name": "200 OK (unknown)",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/sms/status?idempotency_key=9b2f0e10-3333-4c1d-8b22-1a1a1a1a1a1a",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "sms",
                                        "status"
                                    ],
                                    "query": [
                                        {
                                            "key": "idempotency_key",
                                            "value": "9b2f0e10-3333-4c1d-8b22-1a1a1a1a1a1a"
                                        }
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"idempotency_key\": \"9b2f0e10-3333-4c1d-8b22-1a1a1a1a1a1a\",\n  \"state\": \"unknown\",\n  \"charged\": false,\n  \"sms_id\": 5511,\n  \"amount_charged\": null,\n  \"currency\": \"USD\"\n}"
                        },
                        {
                            "name": "404 Not Found",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/sms/status?idempotency_key=9b2f0e10-3333-4c1d-8b22-1a1a1a1a1a1a",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "sms",
                                        "status"
                                    ],
                                    "query": [
                                        {
                                            "key": "idempotency_key",
                                            "value": "9b2f0e10-3333-4c1d-8b22-1a1a1a1a1a1a"
                                        }
                                    ]
                                }
                            },
                            "status": "Not Found",
                            "code": 404,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"error\": {\n    \"code\": \"idempotency_key_not_found\",\n    \"message\": \"No send is on record for this key. It either never started or was refused without sending, so nothing was sent or charged. Records are kept for 7 days.\"\n  }\n}"
                        }
                    ]
                },
                {
                    "name": "Get a single SMS",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/sms/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "sms",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "5501"
                                }
                            ]
                        }
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/sms/5501",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "sms",
                                        "5501"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"id\": 5501,\n  \"type\": \"sms_in\",\n  \"source\": \"+491761234567\",\n  \"destination\": \"+3725512345\",\n  \"message\": \"Hello\",\n  \"received_at\": \"2026-07-18T08:00:00+00:00\"\n}"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Webhook",
            "item": [
                {
                    "name": "Register (or replace) the outbound SMS webhook URL",
                    "request": {
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/webhook",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "webhook"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"webhook_url\": \"https://reseller.example.com/lastsim-webhook\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "Rejects non-https / SSRF-unsafe URLs. webhook_secret is returned exactly once. Response uses `is_verified`/`is_active`."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "PUT",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/webhook",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "webhook"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"webhook_url\": \"https://reseller.example.com/lastsim-webhook\",\n  \"is_verified\": true,\n  \"is_active\": true,\n  \"webhook_secret\": \"whsec_...\"\n}"
                        }
                    ]
                },
                {
                    "name": "Unregister the webhook",
                    "request": {
                        "method": "DELETE",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/webhook",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "webhook"
                            ]
                        }
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "DELETE",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/webhook",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "webhook"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"webhook_url\": null,\n  \"is_active\": false\n}"
                        }
                    ]
                },
                {
                    "name": "Rotate the webhook signing secret",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/webhook/rotate-secret",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "webhook",
                                "rotate-secret"
                            ]
                        }
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/webhook/rotate-secret",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "webhook",
                                        "rotate-secret"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"webhook_url\": \"https://reseller.example.com/lastsim-webhook\",\n  \"webhook_secret\": \"whsec_...\"\n}"
                        }
                    ]
                },
                {
                    "name": "Send an on-demand signed test event",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/webhook/test",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "webhook",
                                "test"
                            ]
                        }
                    },
                    "response": [
                        {
                            "name": "202 Accepted",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/webhook/test",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "webhook",
                                        "test"
                                    ]
                                }
                            },
                            "status": "Accepted",
                            "code": 202,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"delivery_id\": 1042,\n  \"status\": \"pending\"\n}"
                        }
                    ]
                },
                {
                    "name": "List webhook deliveries",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/webhook/deliveries?status=pending&page=1&per_page=20",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "webhook",
                                "deliveries"
                            ],
                            "query": [
                                {
                                    "key": "status",
                                    "value": "pending",
                                    "disabled": true,
                                    "description": "pending | delivered | exhausted."
                                },
                                {
                                    "key": "page",
                                    "value": "1",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "20",
                                    "disabled": true
                                }
                            ]
                        }
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/webhook/deliveries",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "webhook",
                                        "deliveries"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"data\": [\n    {\n      \"id\": 1042,\n      \"sms_id\": 5501,\n      \"is_test\": false,\n      \"webhook_url\": \"https://reseller.example.com/lastsim-webhook\",\n      \"status\": \"delivered\",\n      \"attempts_made\": 1,\n      \"delivered_at\": \"2026-07-18T08:00:05+00:00\",\n      \"created_at\": \"2026-07-18T08:00:04+00:00\"\n    }\n  ],\n  \"meta\": {\n    \"current_page\": 1,\n    \"per_page\": 20,\n    \"total\": 1,\n    \"total_pages\": 1\n  }\n}"
                        }
                    ]
                },
                {
                    "name": "Full per-attempt breakdown for one delivery",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/webhook/deliveries/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "webhook",
                                "deliveries",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "1042"
                                }
                            ]
                        }
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "GET",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/webhook/deliveries/1042",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "webhook",
                                        "deliveries",
                                        "1042"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"id\": 1042,\n  \"sms_id\": 5501,\n  \"is_test\": false,\n  \"webhook_url\": \"https://reseller.example.com/lastsim-webhook\",\n  \"status\": \"delivered\",\n  \"attempts_made\": 1,\n  \"delivered_at\": \"2026-07-18T08:00:05+00:00\",\n  \"created_at\": \"2026-07-18T08:00:04+00:00\",\n  \"attempts\": [\n    {\n      \"attempt_number\": 1,\n      \"attempted_at\": \"2026-07-18T08:00:05+00:00\",\n      \"http_status_code\": 200,\n      \"error_message\": null,\n      \"duration_ms\": 143\n    }\n  ]\n}"
                        }
                    ]
                },
                {
                    "name": "Manually retry an exhausted delivery",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/webhook/deliveries/:id/resend",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "webhook",
                                "deliveries",
                                ":id",
                                "resend"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "1043"
                                }
                            ]
                        },
                        "description": "Manually retry an exhausted delivery once you've fixed your endpoint. Resets to a fresh cycle of up to 5 attempts. Ability: webhook:manage. Returns 422 invalid_delivery_state for anything not currently exhausted."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/webhook/deliveries/1043/resend",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "webhook",
                                        "deliveries",
                                        "1043",
                                        "resend"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"id\": 1043,\n  \"sms_id\": 5510,\n  \"is_test\": false,\n  \"webhook_url\": \"https://reseller.example.com/lastsim-webhook\",\n  \"status\": \"pending\",\n  \"attempts_made\": 0,\n  \"delivered_at\": null,\n  \"created_at\": \"2026-07-18T08:10:00+00:00\"\n}"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Sandbox",
            "item": [
                {
                    "name": "Add fake balance to a sandbox wallet",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/sandbox/wallet/topup",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "sandbox",
                                "wallet",
                                "topup"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"amount\": 500\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "Sandbox-only. 422 sandbox_only with a live token."
                    },
                    "response": [
                        {
                            "name": "200 OK",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/sandbox/wallet/topup",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "sandbox",
                                        "wallet",
                                        "topup"
                                    ]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"balance\": 500.00,\n  \"currency\": \"USD\"\n}"
                        }
                    ]
                },
                {
                    "name": "Insert a fake inbound SMS against a sandbox number",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "disabled": false
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/sandbox/sms/simulate",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "sandbox",
                                "sms",
                                "simulate"
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"sandbox_number_id\": 1,\n  \"source\": \"15551234567\",\n  \"message\": \"Test inbound\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "description": "Sandbox-only. Returns the created inbound SMS in the same shape as GET /sms items."
                    },
                    "response": [
                        {
                            "name": "201 Created",
                            "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                    "raw": "{{baseUrl}}/sandbox/sms/simulate",
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "path": [
                                        "sandbox",
                                        "sms",
                                        "simulate"
                                    ]
                                }
                            },
                            "status": "Created",
                            "code": 201,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "cookie": [],
                            "body": "{\n  \"id\": 1,\n  \"type\": \"sms_in\",\n  \"source\": \"15551234567\",\n  \"destination\": \"+3725512345\",\n  \"message\": \"Test inbound\",\n  \"received_at\": \"2026-07-18T09:30:00+00:00\"\n}"
                        }
                    ]
                }
            ]
        }
    ]
}
