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.ngPOST
/api/rechargepin/Recharge Card Printing
POST — recharge pin / data card
api:readRequired headers
| Header | Value | Required |
|---|---|---|
| Authorization | Token YOUR_API_TOKEN | Yes |
| Content-Type | application/json | Yes (POST/PUT) |
| Accept | application/json | Recommended |
Endpoint
POST
https://datavendor.ng/api/rechargepin/Code samples
cURL
curl -X POST "https://datavendor.ng/api/rechargepin/" \
-H "Authorization: Token YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"network":1,"quantity":1,"plan":3}'Request body (JSON)
JSON
{
"network": 1,
"quantity": 1,
"plan": 3
}Response sample (200)
JSON
{
"Status": "successful",
"ident": "RECHARGE123456",
"pins": ["1234-5678-9012"]
}