Skip to content

Purchase VAS

Request

Security
ApiKeyAuth
Bodyapplication/json
productIDstring
amountstring
referencestring
curl -i -X POST \
  https://docs.amabills.co.za/_mock/openapi/v1/VAS/Purchase \
  -H 'Content-Type: application/json' \
  -H 'X-API-KEY: YOUR_API_KEY_HERE' \
  -d '{
    "productID": "dde67d01-73ff-4f20-acb2-212e1b22ffcd",
    "amount": "500",
    "reference": "[10,20,30,36,1,4,5,8]"
  }'

Responses

Unauthorized – missing or invalid API key.

Bodyapplication/json
successboolean
Example:false
errorstring
Example:"401-4 - Unauthorized. No API key set"
Response
{ "success": false, "error": "401-4 - Unauthorized. No API key set" }