Bills — Data
Internet Order
POST
https://backendapi.sayswitchgroup.com/api/v1/internet/dataThis endpoint allows users to place an order to purchase mobile internet data from a specific provider.
cURL Request
cURL
curl -X POST https://backendapi.sayswitchgroup.com/api/v1/internet/data \
-H "Content-Type: application/json" \
-d '{
"provider": "MTN",
"plan_id": 46,
"number": "07066369927",
"reference": "2024041521481039"
}'Notes
Ensure that the reference is unique for each request to avoid duplication.
The plan_id must be a valid ID obtained from the internet Plans endpoint.
Sample Response
JSON
{
"success": true,
"code": "00000",
"message": "SUCCESSFUL",
"data": {
"orderNo": "17485319933161880294374534",
"reference": "2024041521481039",
"status": "delivered",
"errorMsg": "TRANSACTION SUCCESSFUL"
}
}