Look up the status of a purchase

If the airtime provider does not support the reversal operation then the purchaseStatus operation should be used to determine the outcome of a prior purchase. This operation will, as far as possbile, return the same PurchaseResponse or ErrorDetail as would have been returned had the original purchase completed normally.

Request
Security:
query Parameters
provider
string

The provider who processed the original purchase attempt. Conditionally required if purchaseRef is supplied.

purchaseReference
string

The reference returned in the original purchase attempt. Conditionally required if the originalMsgId is not supplied.

originalMsgId
string

The message ID of the original PurchaseRequest which failed. Conditionally required if the purchaseRef is not supplied.

Responses
200

Accepted

400

Bad Request

404

Not Found

500

Internal Server Error

503

Service Unavailable

504

Gateway Timeout

get/purchases/status
Request samples
curl -i -X GET \
  -u <username>:<password> \
  'https://sandbox.electrum.io/airtime/v5/purchases/status?provider=string&purchaseReference=string&originalMsgId=string'
Response samples
application/json
{
  • "transactionLabels": [
    ],
  • "id": "string",
  • "time": "2019-08-24T14:15:22Z",
  • "originator": {
    },
  • "client": {
    },
  • "settlementEntity": {
    },
  • "receiver": {
    },
  • "thirdPartyIdentifiers": [
    ],
  • "slipData": {
    },
  • "basketRef": "string",
  • "tranType": "GOODS_AND_SERVICES",
  • "srcAccType": "DEFAULT",
  • "destAccType": "DEFAULT",
  • "stan": "string",
  • "rrn": "string",
  • "amounts": {
    },
  • "product": {
    },
  • "msisdn": {
    },
  • "voucher": {
    }
}
Copyright © Electrum Payments (Pty) Ltd. 2019-2022. All right reserved.