Buy internet bundle
Bearer ds_live_ / ds_test_/api/v1/merchant/internet/purchaseBuys an internet bundle (Smile, Spectranet and other ISPs). For variable-amount products, also send amount.
curl -X POST "https://finaldatasub.com/api/v1/merchant/internet/purchase" \
-H "Authorization: Bearer ds_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"reference": "ORDER-10027",
"biller": "smile",
"product_id": 731,
"customer_ref": "1402000123",
"phone": "08031234567"
}'Authentication
Send your secret API key in the header. Authorization: Token … and X-API-Key: … are also accepted.
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer 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 |
|---|---|---|---|
| reference | string | Yes | Your unique order reference and idempotency key (max 128 chars). Re-sending it returns the original transaction and never charges twice. |
| biller | string | Yes | Internet biller slug, e.g. smile, spectranet. |
| product_id | integer | string | Yes | Bundle id from Biller products (or its code). |
| customer_ref | string | Yes | Account / device number (max 40 chars). |
| amount | number | Conditional | Required only when the product has is_variable_amount: true. |
| phone | string | No | Nigerian number, e.g. 08031234567, 2348031234567 or +2348031234567 (must match /^(\+?234|0)?[789][01]\d{8}$/). Stored as 0XXXXXXXXXX. |
| narration | string | No | Note stored on the transaction (max 255 chars). |
| save_beneficiary | boolean | No | Save the customer to your beneficiaries after a successful purchase (default true). |
| beneficiary_label | string | No | Label for the saved beneficiary (max 60 chars). |
Responses
201 Created — Successful · 202 Accepted — Pending · 422 Unprocessable Entity — Failed (refunded)
{
"status": "successful",
"reference": "ORDER-10027",
"channel": "api",
"transaction_id": "DS261005103802F9G0H1J2",
"category": "internet",
"message": "Transaction successful.",
"biller": "Smile",
"biller_slug": "smile",
"product_id": 731,
"product": "Smile 10GB - 30 Days",
"phone": "08031234567",
"customer_ref": "1402000123",
"quantity": 1,
"unit_amount": "5000.00",
"amount": "5000.00",
"face_amount": "5000.00",
"fee": "0.00",
"discount": "0.00",
"total_deducted": "5000.00",
"balance_before": "8335.00",
"balance_after": "3335.00",
"provider_reference": "PRV-88215012",
"purchased_at": "2026-10-05T10:38:02+01:00"
}Errors
Errors specific to this endpoint, in addition to the authentication and validation errors common to every request.
| Code | HTTP | When |
|---|---|---|
| AMOUNT_REQUIRED | 400 | The product is variable-amount and no amount was sent. |
| INVALID_PHONE | 400 | phone is not a valid Nigerian number. |
| BILLER_NOT_FOUND | 404 | Unknown or inactive biller / network. |
| PRODUCT_NOT_FOUND | 404 | Plan id / code not found, inactive or not part of this biller. |
| SERVICE_UNAVAILABLE | 503 | The service or biller is disabled or temporarily unavailable. |
| INVALID_AMOUNT | 400 | Amount is zero or outside the biller's minimum / maximum. |
| DAILY_LIMIT_EXCEEDED | 429 | Your daily spend limit for this service is reached. |
| TIER_MAX_BALANCE / TIER_DAILY_LIMIT / TIER_MONTHLY_LIMIT | 429 | An account tier limit is reached. Upgrade KYC to raise it. |
| INSUFFICIENT_BALANCE | 402 | Wallet balance is too low for this purchase. |
| WALLET_INACTIVE | 403 | Your wallet is frozen or not active. |
| WALLET_BUSY | 409 | Another request is updating your wallet. Retry with the same reference. |
| TRANSACTION_FAILED | 422 | The provider could not deliver. Your wallet was refunded. |
| DUPLICATE | 200 / 202 / 409 | The reference was already used. The original transaction is returned. |