Numbstore
NumbStore Reseller API

Integrate NumbStore into your own website or application: buy verification numbers, retrieve OTPs, and manage activations programmatically. Generate your API key from API Management in your dashboard - no admin approval is required.

Authentication

Every request must include your API key, either as a header or a query parameter:

api-key: YOUR_API_KEY
# or
?api_key=YOUR_API_KEY

Keys are generated from the dashboard and shown in full exactly once, at creation time. NumbStore never stores or displays the plaintext key again afterward - if you lose it, regenerate.

Rate Limits

60 requests per minute, per API key (or per IP for unauthenticated/invalid-key requests). Exceeding this returns HTTP 429.

Idempotency

Purchases support an optional Idempotency-Key - strongly recommended for any automated integration, since network errors mean you cannot always tell whether a purchase actually went through.

POST /api/purchase
Idempotency-Key: a-key-you-generate-per-purchase-attempt
  • First request with a given key: processed normally.
  • Retry with the SAME key, after it completed: returns the exact same response as the first time - no second charge, no second number.
  • A second request with the SAME key while the first is still processing: returns HTTP 409 (request_in_progress) - do not retry immediately.
  • Retry after a failure: allowed - a failed attempt does not lock the key.
  • Omitting the key entirely still works, with no idempotency protection.
Purchase Workflow
  1. GET /api/get-country and GET /api/get-service to discover available codes (or GET /api/get-price directly if you already know them).
  2. GET /api/get-price to find a provider_id (NumbStore variant id), current price, and available stock for a service+country.
  3. POST /api/purchase with that provider_id. On success, the phone number is returned immediately - this endpoint uses NumbStore's existing synchronous purchase flow, not a background queue, so there is no polling needed just to get the number.
  4. Poll GET /api/get-sms (or get-status) with the returned order_id until an OTP arrives.
  5. If no OTP arrives and you no longer need the number, POST /api/cancel while still eligible for a provider-side refund.

order_id in every response below is NumbStore's own order identifier - never the provider's internal activation id. Use it for get-status, get-sms, and cancel.

Endpoints

GET /api/get-balance

Response

{
  "remark": "balance",
  "status": "success",
  "message": { "success": ["Current Balance"] },
  "data": { "balance": "100.00000000", "currency": "XAF" }
}

GET /api/get-country

Response

{
  "data": {
    "countries": [
            { "name": "United States", "code": "187" },
            { "name": "...", "code": "..." }
    ]
  }
}

"code" is the value to pass as service/country to get-price and purchase below.

GET /api/get-service

Response

{
  "data": {
    "services": [
            { "name": "Facebook", "code": "fb" },
            { "name": "...", "code": "..." }
    ]
  }
}

GET /api/get-price?service={service_code}&country={country_code}

Request Parameters

  • service*: Service code from get-service
  • country*: Country code from get-country

Response

{
  "data": {
    "{country}": {
      "{service}": {
        "{provider_id}": { "count": 1200, "price": 3.55, "provider_id": 4864 }
      }
    }
  }
}

Error Codes

  • service_not_found / country_not_found (404)
  • price_not_found / no_stock_available (404)

GET or POST /api/purchase

Request Parameters

  • service*, country*: same codes as above
  • provider_id*: from get-price's response
  • Idempotency-Key (optional header, or idempotency_key field)

Response (success)

{
  "remark": "purchase_successful",
  "status": "success",
  "data": {
    "order_id": 96065,
    "phone": "+14503274970",
    "remaining_balance": "96.45",
    "service": "Whatsapp",
    "country": "Canada",
    "price": "3.55",
    "status": "Waiting for SMS",
    "expires": "2026-10-30 12:30:00"
  }
}

Error Codes

  • insufficient_balance (400) — your wallet cannot be charged for this purchase; nothing is debited
  • item_not_found / service_not_found / country_not_found / variant_not_found / price_not_found
  • provider_mismatch (422) — provider_id is not one of the get-price results for this service and country; nothing is debited
  • purchase_failed (500) — no number currently available for this service/country - try again shortly
  • request_in_progress (409) — see Idempotency above

GET /api/get-status?order_id={order_id}

order_id is the value purchase returned - your own NumbStore order id, not a provider activation id.

{ "data": { "order_id": 96065, "status": "Waiting for SMS" } }

GET /api/get-sms?order_id={order_id}

Poll this periodically (every few seconds, not more often) after a purchase until otp is non-null.

{ "data": { "order_id": 96065, "phone": "+14503274970", "otp": "482913", "status": "RECEIVED", "sms": [...] } }

GET or POST /api/cancel?order_id={order_id}

Cancellation and refund rules are exactly the dashboard's existing rules, applied identically here: a number can only be cancelled for a provider-side refund within the provider's early-cancel window, and only before an OTP has been received. Once an OTP exists, or the window has passed, this returns an error rather than a refund - NumbStore never fabricates a refund the provider itself would not honor.

Response (success)

{ "remark": "cancel_successful", "status": "success", "data": { "order_id": 96065, "status": "CANCELLED", "refunded": true } }

Error Codes

  • already_cancelled (400)
  • early_cancel_denied (400) — too soon after purchase to cancel for a refund
  • cancellation_failed (422)
Common Error Response Shape
{
  "remark": "BAD_KEY",
  "status": "error",
  "message": { "error": ["Invalid API Key"] }
}
  • BAD_KEY / api_required (401) — missing or invalid API key
  • user_inactive (401) — your account is suspended; no reseller endpoint is reachable until it is reactivated
  • HTTP 429 when the rate limit above is exceeded

NumbStore never includes SMSBower (or any other upstream provider) credentials, raw provider error codes, or internal identifiers in any response.