curl --location --request POST 'https://api.paybeta.ng/v2/airtime/purchase' \
--header 'Accept;' \
--header 'P-API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"service": "mtn_vtu",
"phoneNumber": "08123333394",
"amount": 200,
"reference": "{{$timestamp}}"
}'
{
"status": "successful",
"message": "Transaction successful",
"data": {
"reference": "1714742875",
"amount": 2000,
"chargedAmount": 1950,
"commission": 50,
"biller": "MTN AIRTIME",
"customerId": "08068539221",
"previousBalance": 499971725,
"currentBalance": 499969775,
"transactionDate": "2024-05-03 14:27:57",
"transactionId": "1714742877672593466202420"
}
}