SIMcloud Airtime API

The Airtime API from SIMcloud — 1 operation(s) for airtime.

GitHub OpenAPI

Operations 2

POST /api/airtime.php Queue an airtime order #
GET /api/airtime.php Query an airtime order #

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/simcloud-co-za:simcloud-co-za-airtime-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

simcloud-co-za-airtime-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SIMcloud Airtime API
  version: 1.0.0
  description: Token-authenticated SIMcloud REST API. Use HTTPS over IPv4 and send amounts in rand (ZAR). Poll accepted orders by their returned identifier. Reconcile ambiguous POST outcomes before resubmitting. See the API conventions for polling, timeouts and retries.
servers:
- url: https://simcloud.co.za
security:
- bearerAuth: []
tags:
- name: Airtime
paths:
  /api/airtime.php:
    post:
      tags:
      - Airtime
      summary: Queue an airtime order
      description: The same MSISDN and amount cannot be ordered again within 5 minutes. Duplicate requests inside that window return HTTP 409.
      operationId: createAirtimeOrder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - network
              - amount
              properties:
                msisdn:
                  $ref: '#/components/schemas/MobileNumber'
                network:
                  $ref: '#/components/schemas/AirtimeNetwork'
                amount:
                  type: number
                  minimum: 2
                  maximum: 999
                  description: Amount in rand, rounded to two decimal places.
                  example: 10
                reference:
                  type: string
                  minLength: 1
                  description: Your reference for the order.
                  example: INV-10045
                recipient:
                  allOf:
                  - $ref: '#/components/schemas/MobileNumber'
                  description: Alias for msisdn.
                user_reference:
                  type: string
                  minLength: 1
                  description: Alias for reference.
                client_reference:
                  type: string
                  minLength: 1
                  description: Alias for reference.
              allOf:
              - anyOf:
                - required:
                  - msisdn
                - required:
                  - recipient
              - anyOf:
                - required:
                  - reference
                - required:
                  - user_reference
                - required:
                  - client_reference
      responses:
        '201':
          description: Order queued. Persist request_id and poll for the delivery result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RechargeQueued'
        '400':
          description: Invalid request or insufficient balance.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BalanceAwareError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '409':
          $ref: '#/components/responses/DuplicateRecharge'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/QueueBusy'
      externalDocs:
        url: https://simcloud.co.za/api/airtime.html
    get:
      tags:
      - Airtime
      summary: Query an airtime order
      operationId: getAirtimeOrder
      parameters:
      - $ref: '#/components/parameters/RechargeRequestId'
      - $ref: '#/components/parameters/RechargeOrderNumber'
      responses:
        '200':
          description: Order delivery status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RechargeStatus'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Order not found for this account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/Unavailable'
      externalDocs:
        url: https://simcloud.co.za/api/airtime.html
      description: Supply request_id or orderno. Poll until delivered or failed.
components:
  schemas:
    BalanceAwareError:
      allOf:
      - $ref: '#/components/schemas/Error'
      - type: object
        properties:
          required_balance:
            type: number
            description: Required rand balance, included on balance precheck failure.
          available_balance:
            type: number
            description: Last known rand balance, included on balance precheck failure.
    Error:
      type: object
      required:
      - status
      - message
      properties:
        status:
          type: string
          enum:
          - error
        message:
          type: string
    RechargeStatus:
      type: object
      required:
      - status
      - service
      - request_id
      - msisdn
      - network
      - amount
      - reference
      - platform_order_number
      - queue_status
      - final_order_id
      - final_order_status
      - error
      - created_at
      - updated_at
      properties:
        status:
          type: string
          enum:
          - queued
          - pending
          - delivered
          - failed
        service:
          type: string
          enum:
          - airtime
          - data
        request_id:
          type: integer
          minimum: 1
        msisdn:
          type: string
        network:
          type: string
        amount:
          type: number
        reference:
          type: string
        platform_order_number:
          description: Null before placement.
          oneOf:
          - type:
            - integer
            - 'null'
          - type: string
            pattern: ^[0-9]+$
        queue_status:
          type:
          - string
          - 'null'
        final_order_id:
          type:
          - integer
          - 'null'
        final_order_status:
          type:
          - string
          - 'null'
        error:
          type:
          - string
          - 'null'
        created_at:
          $ref: '#/components/schemas/LocalTimestamp'
        updated_at:
          $ref: '#/components/schemas/LocalTimestamp'
    AirtimeNetwork:
      type: string
      description: Network values are matched case-insensitively after trimming.
      enum:
      - mtn
      - cellc
      - cell-c
      - cell c
      - vodacom
      - telkom
      - heita
      - p-mtn
      - p-cellc
      - p-vodacom
      - p-heita
      example: mtn
    RechargeQueued:
      type: object
      required:
      - status
      - message
      - service
      - request_id
      - msisdn
      - network
      - amount
      - reference
      - queue_status
      - timestamp
      properties:
        status:
          type: string
          enum:
          - success
        message:
          type: string
        service:
          type: string
          enum:
          - airtime
          - data
        request_id:
          type: integer
          minimum: 1
        msisdn:
          type: string
        network:
          type: string
        amount:
          type: number
        reference:
          type: string
        queue_status:
          type: string
          enum:
          - queued
        timestamp:
          $ref: '#/components/schemas/LocalTimestamp'
    MobileNumber:
      type: string
      pattern: ^(?:0|\+27|27)?[0-9]{9}$
      description: South African mobile number. Prefer +27 followed by nine digits. Encode + as %2B in query parameters.
      example: '+27821234567'
    LocalTimestamp:
      type: string
      description: Local timestamp in Africa/Johannesburg, using YYYY-MM-DD HH:MM:SS.
      example: '2026-07-29 09:31:20'
  responses:
    DuplicateRecharge:
      description: An order for the same MSISDN and amount already exists within the five-minute duplicate window. Check the existing order before resubmitting.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    QueueBusy:
      description: The order queue is busy. Check for an existing request before retrying.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: Missing or invalid request parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid Bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: API temporarily unavailable. Honour Retry-After when present.
      headers:
        Retry-After:
          description: Suggested delay in seconds before retrying a read request.
          schema:
            type: integer
            minimum: 0
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  parameters:
    RechargeRequestId:
      name: request_id
      in: query
      required: false
      description: Queue identifier returned by POST. Takes precedence over orderno when both are supplied.
      schema:
        type: integer
        minimum: 1
    RechargeOrderNumber:
      name: orderno
      in: query
      required: false
      description: Platform order number from platform_order_number in a status response.
      schema:
        type: string
        minLength: 1
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Token