purchaseStatus

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.

SecurityhttpBasic or oauth2
Request
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

OK

400

Bad request

404

Not found

500

Internal server error

503

Service unavailable

504

Gateway timeout

get/purchases/status
Request samples
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.