Skip to main content
Powering SA prepaid since 2003 / No monthly fees, ever
SIMcloud bulk airtime and data recharge platform

Transaction History API

Use the Transaction History API to read orders and messages for the connected SIMcloud account. It’s useful when you’re reconciling records or building an account report. Choose a date range and service, then follow the cursor to read any remaining pages.

On this page

GET /api/transactions.php

Open the API reference

Read the first page

Set SIMCLOUD_DATE_FROM and SIMCLOUD_DATE_TO to YYYY-MM-DD dates. The dates are inclusive in Africa/Johannesburg and the maximum range is 90 days. The type filter accepts airtime, data, electricity, vas and sms. Use limit from 1 to 100. The example uses limit=1 to demonstrate pagination.

GET /api/transactions.php

curl -4 -sS -i "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/transactions.php" \
  -H "Authorization: Bearer $SIMCLOUD_API_TOKEN" \
  --get \
  --data-urlencode "date_from=$SIMCLOUD_DATE_FROM" \
  --data-urlencode "date_to=$SIMCLOUD_DATE_TO" \
  --data-urlencode 'type=airtime,data' \
  --data-urlencode 'limit=1'

HTTP 200 response excerpt

{
  "status": "success"
}

Use the cursor to get the next page

Set SIMCLOUD_CURSOR to pagination.next_cursor when it has a value. Pass it back unchanged with the same dates and type filter. Stop when next_cursor is null. Row status is success, failed or pending across the supported services.

GET /api/transactions.php

curl -4 -sS -i "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/transactions.php" \
  -H "Authorization: Bearer $SIMCLOUD_API_TOKEN" \
  --get \
  --data-urlencode "date_from=$SIMCLOUD_DATE_FROM" \
  --data-urlencode "date_to=$SIMCLOUD_DATE_TO" \
  --data-urlencode 'type=airtime,data' \
  --data-urlencode 'limit=1' \
  --data-urlencode "cursor=$SIMCLOUD_CURSOR"

HTTP 200 response excerpt

{
  "status": "success"
}