cURL
curl --request POST \ --url https://api.delaphonegh.com/v1/databundle \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "recipient_phone": "<string>", "recipient_network": "<string>", "plan_id": "<string>", "reference": "<string>", "webhook_url": "<string>" } '
{ "transaction_id": "<string>", "status": "<string>" }
Purchase a data bundle for a specified recipient.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Data bundle purchase details.
Phone number of the recipient in E.164 format
Network of the recipient
ID of the data bundle plan to be purchased
Unique reference for the transaction
URL to receive status updates
Data bundle purchased successfully
Unique identifier for the data purchase
Status of the data purchase