SIMcloud Data API

The Data API from SIMcloud — 1 operation(s) for data.

GitHub OpenAPI

Operations 2

POST /api/data.php Queue a data order #
GET /api/data.php List data products or query a data 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-data-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-data-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SIMcloud Data 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: Data
paths:
  /api/data.php:
    post:
      tags:
      - Data
      summary: Queue a data order
      description: The same MSISDN and amount cannot be ordered again within 5 minutes. Duplicate requests inside that window return HTTP 409.
      operationId: createDataOrder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - network
              properties:
                msisdn:
                  $ref: '#/components/schemas/MobileNumber'
                network:
                  $ref: '#/components/schemas/DataNetwork'
                amount:
                  type: number
                  description: Current catalogue sellvalue for the chosen network.
                  example: 25
                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.
                sellvalue:
                  type: number
                  description: Alias for amount. Use a current catalogue sellvalue.
              allOf:
              - anyOf:
                - required:
                  - msisdn
                - required:
                  - recipient
              - anyOf:
                - required:
                  - reference
                - required:
                  - user_reference
                - required:
                  - client_reference
              - anyOf:
                - required:
                  - amount
                - required:
                  - sellvalue
      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/data.html
    get:
      tags:
      - Data
      summary: List data products or query a data order
      description: Without request_id or orderno, returns the current data bundle product catalog. Add network to filter the catalog. With request_id or orderno, returns the authenticated account's data order status.
      operationId: getDataOrder
      parameters:
      - $ref: '#/components/parameters/RechargeRequestId'
      - $ref: '#/components/parameters/RechargeOrderNumber'
      - name: products
        in: query
        required: false
        description: Optional catalogue flag. Omit order identifiers to list products.
        schema:
          type: integer
          enum:
          - 1
      - name: network
        in: query
        required: false
        description: Filter the data catalogue by network.
        schema:
          $ref: '#/components/schemas/DataNetwork'
      responses:
        '200':
          description: Order status or data product catalogue.
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/RechargeStatus'
                - $ref: '#/components/schemas/DataCatalogue'
        '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/data.html
components:
  schemas:
    DataNetwork:
      type: string
      description: Network values are matched case-insensitively after trimming.
      enum:
      - mtn
      - cellc
      - cell-c
      - cell c
      - vodacom
      - telkom
      - heita
      - pd-mtn
      - pd-cellc
      - pd-vodacom
      - pd-heita
      example: mtn
    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
    DataPrice:
      description: Catalogue sell value in rand. Numeric prices are returned as numbers.
      oneOf:
      - type: number
      - type: string
    LocalTimestamp:
      type: string
      description: Local timestamp in Africa/Johannesburg, using YYYY-MM-DD HH:MM:SS.
      example: '2026-07-29 09:31:20'
    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'
    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'
    DataProduct:
      type: object
      required:
      - product_id
      - network
      - network_name
      - description
      - groupname
      - amount
      - sellvalue
      properties:
        product_id:
          type: integer
          minimum: 1
        network:
          type: string
        network_name:
          type: string
        description:
          type: string
        groupname:
          type: string
        amount:
          $ref: '#/components/schemas/DataPrice'
        sellvalue:
          $ref: '#/components/schemas/DataPrice'
    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'
    DataCatalogue:
      type: object
      required:
      - status
      - service
      - count
      - products
      properties:
        status:
          type: string
          enum:
          - success
        service:
          type: string
          enum:
          - data
        count:
          type: integer
          minimum: 0
        products:
          type: array
          items:
            $ref: '#/components/schemas/DataProduct'
  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
  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'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Token