curl --location --request POST 'https://api.paybeta.ng/v2/cable/purchase' \
--header 'Accept;' \
--header 'P-API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"service": "dstv",
"smartCardNumber": "806***82",
"amount": 200,
"packageCode": "COMPLE36",
"customerName": "JOHN DOE",
"reference": "{{$timestamp}}"
}'
{
"status": "successful",
"message": "Transaction successful",
"data": {
"reference": "1715458530",
"amount": 201,
"chargedAmount": 197.99,
"commission": 3.02,
"biller": "DStv Compact Plus",
"customerId": "8216167618",
"token": null,
"unit": null,
"bonusToken": null,
"transactionDate": "2024-05-11 21:15:31",
"transactionId": "17154585319693132432"
}
}