MSORG — buy data
Token ds_live_ / ds_test_POST
/api/data/Classic MSORG POST /api/data/. Flat DataSerializer response. HTTP 201 for created orders — branch on Status.
Language
curl -X POST "https://finaldatasub.com/api/data/" \
-H "Authorization: Token ds_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"network": 1,
"mobile_number": "08031234567",
"plan": 1001,
"Ported_number": true,
"customer_ref": "ORDER-2001"
}'Authentication
Send your secret API key in the header. Authorization: Token … and X-API-Key: … are also accepted.
| Header | Value | Required |
|---|---|---|
| Authorization | Token ds_live_YOUR_KEY | Yes |
| Content-Type | application/json | Yes |
| Accept | application/json | Recommended |
Authentication failures (401 UNAUTHORIZED, 403 IP_NOT_ALLOWED / ACCOUNT_SUSPENDED / API_ACCESS_NOT_APPROVED, 429 RATE_LIMITED) are listed in Authentication.
Parameters
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
| network | integer | string | No | MSORG network id (1 MTN, 2 GLO, 3 9MOBILE, 4 AIRTEL). Echoed in the response; fulfilment uses the plan’s network. |
| mobile_number | string | Yes | Beneficiary MSISDN (Nigerian format). |
| plan | integer | Yes | Our product public id (from List billers / Plans). |
| Ported_number | boolean | No | Default true. |
| customer_ref | string | No | Optional idempotency key (also accepts ident / Customer_ref). |
Responses
201 Created — Successful order · 201 Created — Failed order (Status=failed) · 400 Bad Request — Validation error
{
"id": 12,
"ident": "FDS261105120001ABCDEF",
"plan_type": "SME",
"data_type": "SME",
"duration": "30 days",
"customer_ref": "ORDER-2001",
"network": 1,
"balance_before": "5000.00",
"balance_after": "4700.00",
"mobile_number": "08031234567",
"plan": 1001,
"Status": "successful",
"plan_network": "MTN",
"plan_name": "1GB 30 Days",
"plan_amount": "300.00",
"create_date": "2026-11-12T10:00:00+01:00",
"Ported_number": true,
"api_response": "You have successfully purchased 1GB 30 Days for 08031234567.",
"provider_source": ""
}Notes
- Response always includes id, ident, plan_*, Status, api_response, Ported_number, provider_source, balances and create_date.
- Requery later with GET /api/data/{id} using the numeric
idor theident/customer_ref.