Roamzy Orders API

The Orders API from Roamzy — 2 operation(s) for orders.

GitHub OpenAPI

Operations 2

POST /api/v1/orders Create eSIM order with USDT payment intent (auth + purchase scope) #
GET /api/v1/orders/{id} Poll order status #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/roamzy-io:roamzy-io-orders-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

roamzy-io-orders-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Roamzy Agent Orders API
  version: 1.0.0
  description: Public REST surface for AI agents and 3rd-party integrators. One global eSIM. Per-MB billing. Stablecoin payments in USDT or USDC (no fiat, no cards); the enabled networks are listed by GET /api/v1/payment-options. See https://roamzy.io/llms.txt for human-readable agent guidance.
  contact:
    name: Roamzy support
    url: https://t.me/roamzy_support_bot
    email: support@roamzy.io
  license:
    name: Proprietary
    url: https://roamzy.io/legal/terms
servers:
- url: https://roamzy.io
  description: Production
tags:
- name: Orders
paths:
  /api/v1/orders:
    post:
      summary: Create eSIM order with USDT payment intent (auth + purchase scope)
      description: Reserves an eSIM and creates a NowPayments invoice. Runs spending-limit gate (daily/monthly/cool-off/big-txn). Returns pay_url for the user to complete payment.
      security:
      - bearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - country_slug
              - amount_usdt
              properties:
                country_slug:
                  type: string
                  example: esim-spain
                amount_usdt:
                  type: integer
                  minimum: 20
                  maximum: 1000
                  example: 20
                  description: Whole USDT. Anti-dust minimum is 20; smaller amounts are rejected with error "below_min_topup".
                pay_currency:
                  type: string
                  example: usdttrc20
                  description: Pay-currency code from GET /api/v1/payment-options. Ask the user which stablecoin + network they hold and pass their choice — do not guess. If omitted, the invoice falls back to usdttrc20 (USDT on TRON), which locks NowPayments checkout to that one network.
      responses:
        '200':
          description: Order created — user pays at pay_url. msisdn is the user-facing eSIM identifier; all other IDs are internal plumbing.
          content:
            application/json:
              schema:
                type: object
                properties:
                  msisdn:
                    type:
                    - string
                    - 'null'
                    description: USER-FACING eSIM phone number (e.g. "2040400002"). Show this to the human; hide the other IDs.
                  order_id:
                    type: string
                    description: Internal — pass to follow-up endpoints only.
                  intent_id:
                    type: string
                    description: Internal — use as :id in GET /api/v1/orders/:id. Do NOT show to user.
                  esim_id:
                    type: string
                    description: Internal — use as :id in GET /api/v1/esims/:id. Do NOT show to user.
                  display_id:
                    type: string
                    description: Internal short ID. Do NOT show to user.
                  pay_url:
                    type: string
                    format: uri
                    description: NowPayments hosted invoice. Surface to user.
                  amount_usdt:
                    type: number
                  status:
                    type: string
                    example: waiting
                  user_facing:
                    type: object
                    description: Pre-formatted UX hint — agents can copy identifier_value + action_url straight into user-visible text.
                    properties:
                      identifier_label:
                        type: string
                        example: Your eSIM number
                      identifier_value:
                        type:
                        - string
                        - 'null'
                        description: The MSISDN — same value as the top-level `msisdn` field.
                      action_label:
                        type: string
                        example: Pay with USDT
                      action_url:
                        type: string
                        format: uri
                      hint:
                        type: string
                  next_steps:
                    type: array
                    items:
                      type: string
        '400':
          description: Invalid body
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: Spending limit exceeded (daily/monthly/cool-off)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Purchase scope missing or big-txn confirmation required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Country not in catalog
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: eSIM cap reached or reservation conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: Upstream failure. `invoice_create_failed` — NowPayments could not create the invoice (retry with backoff). `provider_error` — the eSIM reservation step failed, before any invoice existed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Purchases paused (`purchases_paused`), site-wide payments off (`payments_disabled`) or unconfigured (`payments_not_configured`). Poll /api/v1/status and back off.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      tags:
      - Orders
      operationId: postApiV1Orders
      x-operation-id-source: derived
  /api/v1/orders/{id}:
    get:
      summary: Poll order status
      description: 'Returns current status of an intent: waiting | confirming | confirmed | finished | failed | expired | refunded. msisdn is the user-facing identifier — surface that to the human, keep the other IDs internal.'
      security:
      - bearer: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK — includes msisdn (user-facing) plus internal IDs for follow-up calls
        '401':
          description: Missing or invalid token
        '404':
          description: Order not found (or not yours)
      tags:
      - Orders
      operationId: getApiV1OrdersById
      x-operation-id-source: derived
components:
  schemas:
    ErrorResponse:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          example: invalid_token
        detail:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: rk_live_<base64url>
      description: API token issued in the user dashboard. Format `rk_live_<32-char-base64url>`. Shown once on creation; only SHA-256 hash is stored server-side.