datavendor.ng merchant API
API Documentation
REST API for data, airtime, cable TV, electricity, exam pins, recharge cards and bulk SMS. Authenticate with your token and call the live base URL below.
JSON over HTTPSToken authenticationLive pricing
Base URL
https://datavendor.ngGET
/api/data/{id}/Query Data Transaction
GET — check data order status
api:readQuery a single data transaction by ID, or list/search all your data orders.
Required headers
| Header | Value | Required |
|---|---|---|
| Authorization | Token YOUR_API_TOKEN | Yes |
| Content-Type | application/json | Yes (POST/PUT) |
| Accept | application/json | Recommended |
Endpoint
GET
https://datavendor.ng/api/data/{id}/Parameters / payload fields
| Parameter | Type | Description |
|---|---|---|
| id | path | Transaction ID from buy response |
| search | query | Optional — search by id, ident or mobile on GET /api/data/?search= |
Code samples
cURL
curl -X GET "https://datavendor.ng/api/data/1024/" \
-H "Authorization: Token YOUR_API_TOKEN" \
-H "Accept: application/json"
# List / search
curl -X GET "https://datavendor.ng/api/data/?search=DATA3123" \
-H "Authorization: Token YOUR_API_TOKEN"Response sample (200)
JSON
{
"id": 1024,
"ident": "DATA31234567890abcdef",
"Status": "successful",
"mobile_number": "09037346247",
"plan_amount": "500.00"
}