SIMcloud VAS API

The VAS API from SIMcloud — 1 operation(s) for vas.

GitHub OpenAPI

Operations 2

GET /api/vas.php List VAS products or query a VAS order #
POST /api/vas.php Queue a VAS voucher 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-vas-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-vas-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SIMcloud VAS 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: VAS
paths:
  /api/vas.php:
    get:
      tags:
      - VAS
      summary: List VAS products or query a VAS order
      description: Without query parameters, returns the active VAS product catalog. With order_id or transaction_id, returns an API-created VAS order owned by the authenticated account.
      operationId: getVas
      parameters:
      - in: query
        name: order_id
        required: false
        schema:
          type: integer
          minimum: 1
      - in: query
        name: transaction_id
        required: false
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: VAS catalogue or order status.
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/VasCatalogue'
                - $ref: '#/components/schemas/VasStatus'
        '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/vas.html
    post:
      tags:
      - VAS
      summary: Queue a VAS voucher order
      operationId: createVasOrder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - amount
              properties:
                product_id:
                  type: integer
                  minimum: 1
                  description: Product ID from the catalogue. Takes precedence over voucher_type.
                  example: 12
                voucher_type:
                  type: string
                  description: Exact voucher type or slug returned by the catalog endpoint. Required if product_id is not supplied.
                  example: checkers
                amount:
                  type: number
                  description: A denomination from available_amounts in the catalogue.
                  example: 100
                  exclusiveMinimum: 0
                reference:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: Order reference, up to 200 bytes.
                  example: INV-10045
                product:
                  type: string
                  minLength: 1
                  description: Alias for voucher_type.
                voucher_supplier:
                  type: string
                  minLength: 1
                  description: Alias for voucher_type.
                user_reference:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: Alias for reference.
                client_reference:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: Alias for reference.
              allOf:
              - anyOf:
                - required:
                  - product_id
                - required:
                  - voucher_type
                - required:
                  - product
                - required:
                  - voucher_supplier
              - anyOf:
                - required:
                  - reference
                - required:
                  - user_reference
                - required:
                  - client_reference
      responses:
        '201':
          description: Voucher queued. Poll by order_id or transaction_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VasQueued'
        '400':
          description: Invalid request, unavailable denomination or insufficient balance.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VasOrderError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          description: Unable to verify the wallet balance.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      externalDocs:
        url: https://simcloud.co.za/api/vas.html
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
    VasQueued:
      type: object
      required:
      - status
      - message
      - service
      - order_id
      - transaction_id
      - product_id
      - voucher_type
      - amount
      - fee
      - total_billed_amount
      - reference
      - process_status
      - billing_status
      - timestamp
      properties:
        status:
          type: string
          enum:
          - success
        message:
          type: string
        service:
          type: string
          enum:
          - vas
        order_id:
          type: integer
          minimum: 1
        transaction_id:
          type: string
          format: uuid
        product_id:
          type: integer
          minimum: 1
        voucher_type:
          type: string
        amount:
          type: number
        fee:
          type: number
        total_billed_amount:
          type: number
        reference:
          type: string
        process_status:
          type: string
          enum:
          - Pending
          - Submitted
          - Completed
          - Failed
          - Reconcile
        billing_status:
          type: string
          enum:
          - pending
          - billed
          - failed
          - not_required
        timestamp:
          $ref: '#/components/schemas/LocalTimestamp'
    LocalTimestamp:
      type: string
      description: Local timestamp in Africa/Johannesburg, using YYYY-MM-DD HH:MM:SS.
      example: '2026-07-29 09:31:20'
    VasProduct:
      type: object
      required:
      - product_id
      - voucher_type
      - slug
      - default_amount
      - available_amounts
      - logo_url
      properties:
        product_id:
          type: integer
          minimum: 1
        voucher_type:
          type: string
        slug:
          type: string
        default_amount:
          type: number
        available_amounts:
          type: array
          items:
            type: number
        logo_url:
          type:
          - string
          - 'null'
          format: uri
    VasOrderError:
      allOf:
      - $ref: '#/components/schemas/BalanceAwareError'
      - type: object
        properties:
          available_amounts:
            type: array
            items:
              type: number
            description: Available denominations, included when the amount is unavailable.
    VasCatalogue:
      type: object
      required:
      - status
      - service
      - count
      - products
      properties:
        status:
          type: string
          enum:
          - success
        service:
          type: string
          enum:
          - vas
        count:
          type: integer
          minimum: 0
        products:
          type: array
          items:
            $ref: '#/components/schemas/VasProduct'
    VasStatus:
      type: object
      required:
      - status
      - message
      - service
      - order_id
      - transaction_id
      - product_id
      - voucher_type
      - amount
      - fee
      - total_billed_amount
      - reference
      - process_status
      - billing_status
      - supplier_http_status
      - supplier_error
      - created_at
      - submitted_at
      - completed_at
      - updated_at
      properties:
        status:
          type: string
          enum:
          - pending
          - success
          - failed
        message:
          type: string
        service:
          type: string
          enum:
          - vas
        order_id:
          type: integer
          minimum: 1
        transaction_id:
          type: string
          format: uuid
        product_id:
          type:
          - integer
          - 'null'
          minimum: 1
        voucher_type:
          type: string
        amount:
          type: number
        fee:
          type: number
        total_billed_amount:
          type: number
        reference:
          type: string
        process_status:
          type: string
          enum:
          - Pending
          - Submitted
          - Completed
          - Failed
          - Reconcile
        billing_status:
          type: string
          enum:
          - pending
          - billed
          - failed
          - not_required
        supplier_http_status:
          type:
          - integer
          - 'null'
        supplier_error:
          type:
          - string
          - 'null'
        created_at:
          $ref: '#/components/schemas/LocalTimestamp'
        submitted_at:
          $ref: '#/components/schemas/NullableLocalTimestamp'
        completed_at:
          $ref: '#/components/schemas/NullableLocalTimestamp'
        updated_at:
          $ref: '#/components/schemas/LocalTimestamp'
        vouchers:
          type: array
          items:
            $ref: '#/components/schemas/VasVoucher'
          description: Returned on success.
    NullableLocalTimestamp:
      type:
      - string
      - 'null'
      description: Local timestamp in Africa/Johannesburg, using YYYY-MM-DD HH:MM:SS.
      example: '2026-07-29 09:31:20'
    VasVoucher:
      type: object
      required:
      - voucher_type
      - voucher_code
      - value
      - expiry_date
      properties:
        voucher_type:
          type:
          - string
          - 'null'
        voucher_code:
          type: string
        value:
          type:
          - number
          - 'null'
        expiry_date:
          type:
          - string
          - 'null'
  responses:
    Unauthorized:
      description: Missing or invalid Bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: Missing or invalid request parameters.
      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