curl --location --request POST 'https://api.xente.co/api/transactions/payouts/airtime' \--header 'Content-Type: application/json' \--header 'Authorization: Token <token>' \```json{ "requestId": "92399933543589",//Id from your system to uniquely identify the transaction "batchId": "batch5678", "amount": 1000, "type": "PAYOUT", //use DEPOSIT to fund your account, PAYOUT to fund other accounts "message": "Send airtime facilitation", "metadata": "Expense code 1000023", "product": { "id": "MTNAIRTIMEUG", "productItemId": "MTNAIRTIMEUG_MTNAIRTIMEUG" }, "beneficiary": { "id": "ben003", //Id from your system to identify beneficiary "name": "John Doe", "emailAddress": "johndoe@example.com", "phoneNumber": "+1234567890", "data": { "phoneNumber": "+1234567890" //The mobile money number to deposit or remove funds from } }}
Copy
{ "code": 0, "message": "Transaction Has Been Successfully Received. Notification Will Be Sent Shortly", "data": { "requestId": "92399933543589", "batchId": "batch5678", "transactionId": "0f595604-2c80-4d32-d3e4-08dc37af5a91", "status": "PROCESSING", "message": "Processing Debit Transaction. Instant Payment Notification will be sent shortly", "createdOn": "2/27/2024 4:15:45 PM" }}, "code": 0, "status": "success"}
Airtime
Post airtime
This endpoint posts a new airtime transaction
POST
/
api
/
transactions
/
payouts
/
airtime
Copy
curl --location --request POST 'https://api.xente.co/api/transactions/payouts/airtime' \--header 'Content-Type: application/json' \--header 'Authorization: Token <token>' \```json{ "requestId": "92399933543589",//Id from your system to uniquely identify the transaction "batchId": "batch5678", "amount": 1000, "type": "PAYOUT", //use DEPOSIT to fund your account, PAYOUT to fund other accounts "message": "Send airtime facilitation", "metadata": "Expense code 1000023", "product": { "id": "MTNAIRTIMEUG", "productItemId": "MTNAIRTIMEUG_MTNAIRTIMEUG" }, "beneficiary": { "id": "ben003", //Id from your system to identify beneficiary "name": "John Doe", "emailAddress": "johndoe@example.com", "phoneNumber": "+1234567890", "data": { "phoneNumber": "+1234567890" //The mobile money number to deposit or remove funds from } }}
Copy
{ "code": 0, "message": "Transaction Has Been Successfully Received. Notification Will Be Sent Shortly", "data": { "requestId": "92399933543589", "batchId": "batch5678", "transactionId": "0f595604-2c80-4d32-d3e4-08dc37af5a91", "status": "PROCESSING", "message": "Processing Debit Transaction. Instant Payment Notification will be sent shortly", "createdOn": "2/27/2024 4:15:45 PM" }}, "code": 0, "status": "success"}
Timestamp indicating when the transaction was created.
Copy
curl --location --request POST 'https://api.xente.co/api/transactions/payouts/airtime' \--header 'Content-Type: application/json' \--header 'Authorization: Token <token>' \```json{ "requestId": "92399933543589",//Id from your system to uniquely identify the transaction "batchId": "batch5678", "amount": 1000, "type": "PAYOUT", //use DEPOSIT to fund your account, PAYOUT to fund other accounts "message": "Send airtime facilitation", "metadata": "Expense code 1000023", "product": { "id": "MTNAIRTIMEUG", "productItemId": "MTNAIRTIMEUG_MTNAIRTIMEUG" }, "beneficiary": { "id": "ben003", //Id from your system to identify beneficiary "name": "John Doe", "emailAddress": "johndoe@example.com", "phoneNumber": "+1234567890", "data": { "phoneNumber": "+1234567890" //The mobile money number to deposit or remove funds from } }}
Copy
{ "code": 0, "message": "Transaction Has Been Successfully Received. Notification Will Be Sent Shortly", "data": { "requestId": "92399933543589", "batchId": "batch5678", "transactionId": "0f595604-2c80-4d32-d3e4-08dc37af5a91", "status": "PROCESSING", "message": "Processing Debit Transaction. Instant Payment Notification will be sent shortly", "createdOn": "2/27/2024 4:15:45 PM" }}, "code": 0, "status": "success"}