Utilities Unified API
One lookup-and-vend flow for utility and digital-service purchases: Cable TV, Electricity and Betting.
Environment base URL:
Test: https://sandbox-api-d.squadco.com
Production: https://api-d.squadco.com
Authorization keys are to be passed via Headers as a Bearer token.
Example: Authorization: Bearer sandbox_sk_94f2b798466408ef4d19e848ee1a4d1a3e93f104046f
All requests must include the following headers:
Authorization: Bearer YOUR_SECRET_KEY
Content-Type: application/json
Vend request amount values and product kobo_amount values are in kobo (₦500 = 50000). Vend responses return amount and merchant_amount in naira (for example "500.00"). Lookup limits (minimum_vend, maximum_vend) are in naira.
Supported Utilities
| Service | What it supports | Provider codes |
|---|---|---|
CABLE | TV subscriptions and bouquet purchases | DSTV, GOTV, STARTIMES |
ELECTRICITY | Prepaid and postpaid electricity purchases | IE, AEDC, YEDC, BEDC, EKEDC, IBEDC, KEDCO, KAEDC, PHED, EEDC, APLE, JED |
BETTING | Betting wallet funding | BETKING |
Product catalogues and configured service routes can change, so always send the product code values returned by /vending/bills/products.
Endpoints
| Operation | Method | Path | Applies to |
|---|---|---|---|
| List products | GET | /vending/bills/products?service={service}&provider={provider} | Cable, Electricity |
| Validate customer | POST | /vending/bills/lookup/{service_path} (cabletv, electricity, betting) | All services |
| Complete purchase | POST | /vending/bills/vend | All services |
| Check transaction | GET | /vending/transactions/{merchant_reference} | All services |
Standard Flow
- For Cable and Electricity, optionally retrieve
/vending/bills/products. - Call the service's
/vending/bills/lookup/...endpoint to validate the customer. Save itsvalidation_token. - Call
/vending/bills/vendwith that token, theservice, customer contact details and the service-specific purchase input. - If vend returns HTTP
202/PENDING, query/vending/transactions/{merchant_reference}. Do not vend again.
Response Codes
| HTTP status | Meaning |
|---|---|
200 | Success. The request completed. |
202 | Pending. The purchase is in progress; check its status with /vending/transactions/{merchant_reference}. |
400 | Bad request. A field is missing or invalid. Check the message and fix the request. |
403 | Unauthorized. The Authorization header is missing or the key is invalid for this environment. |
List Products
This endpoint returns the products available for a provider. Product catalogues are available for Cable and Electricity. Always use the returned product code and price rather than hard-coding either.
This API retrieves the product catalogue for a provider
Parameters
Query
service*
String
Service code. One of CABLE or ELECTRICITY
provider*
String
Provider code, e.g. DSTV, IE
Sample Request
curl --location 'https://sandbox-api-d.squadco.com/vending/bills/products?provider=DSTV&service=CABLE' \
--header 'Authorization: Bearer YOUR_SECRET_KEY'
Sample Response
- 200: Success
- 400: Bad Request
- 403: Unauthorized
{
"status": 200,
"success": true,
"message": "Success",
"data": {
"status": 200,
"success": true,
"message": "Success",
"data": {
"service": "CABLE",
"provider": "DSTV",
"products": [
{
"code": "DSTV_COMPACT_PLUS_MOVIE_ADDON",
"name": "Dstv Compact Plus Movie Bundle Add-on",
"kobo_amount": 350000,
"currency": "NGN"
},
{
"code": "DSTV_MOVIE_ADDON",
"name": "Dstv Movie Bundle Add-on",
"kobo_amount": 350000,
"currency": "NGN"
},
{
"code": "DSTV_GREAT_WALL",
"name": "Dstv Great Wall",
"kobo_amount": 380000,
"currency": "NGN"
},
{
"code": "DSTV_HDPVR_ACCESS",
"name": "Dstv Hdpvr Access Service",
"kobo_amount": 600000,
"currency": "NGN"
},
{
"code": "DSTV_STARTER",
"name": "Dstv Starter",
"kobo_amount": 600000,
"currency": "NGN"
},
{
"code": "DSTV_FRENCH_TOUCH_ADDON",
"name": "Dstv French Touch Add-on",
"kobo_amount": 700000,
"currency": "NGN"
},
{
"code": "DSTV_FRENCH_11_ADDON",
"name": "Dstv French 11 Add-on",
"kobo_amount": 1080000,
"currency": "NGN"
},
{
"code": "DSTV_SELECT",
"name": "Dstv Select",
"kobo_amount": 1100000,
"currency": "NGN"
},
{
"code": "DSTV_ASIAN_ADDON",
"name": "Dstv Asian Add-on",
"kobo_amount": 1490000,
"currency": "NGN"
},
{
"code": "DSTV_ASIAN",
"name": "Dstv Asian",
"kobo_amount": 1490000,
"currency": "NGN"
},
{
"code": "DSTV_SPORTS",
"name": "Dstv Sports",
"kobo_amount": 2100000,
"currency": "NGN"
},
{
"code": "DSTV_FRENCH_PLUS_ADDON",
"name": "Dstv French Plus Add-on",
"kobo_amount": 2450000,
"currency": "NGN"
},
{
"code": "DSTV_PREMIUM",
"name": "Dstv Premium",
"kobo_amount": 4450000,
"currency": "NGN"
},
{
"code": "DSTV_PREMIUM_ASIAN",
"name": "Dstv Premium + Asian",
"kobo_amount": 5050000,
"currency": "NGN"
},
{
"code": "DSTV_PREMIUM_FRENCH",
"name": "Dstv Premium + French",
"kobo_amount": 6900000,
"currency": "NGN"
}
]
}
}
}
{
"status": 400,
"success": false,
"message": "ERROR_MESSAGE",
"data": {}
}
{
"status": 403,
"success": false,
"message": "ERROR_MESSAGE",
"data": {}
}
Lookup
Every purchase begins with a lookup. Each service has its own lookup path. A successful response contains a validation_token, which is required for the related vend request.
What the lookup returns depends on the service:
- Cable: the customer's name and current subscription (
current_product). - Electricity: the customer's name, address, account and meter details, outstanding debt, and the minimum purchase amount (
minimum_vend). - Betting: the minimum and maximum amount the customer can fund (
minimum_vendandmaximum_vend).
This API validates a customer before a purchase
Parameters
Body
service*
String
Service code: CABLE, ELECTRICITY or BETTING. Must match the lookup path, e.g. CABLE for /vending/bills/lookup/cabletv, BETTING for /vending/bills/lookup/betting
provider*
String
Provider code, e.g. DSTV, IE, BETKING (see Supported Utilities)
customer_identifier*
String
Smart-card/decoder number, meter/account number or betting account ID, depending on the service
context*
Object
Service-specific context. ELECTRICITY: { meter_type: prepaid | postpaid }. Not required for CABLE or BETTING
Lookup input per service
| Service | Lookup path | customer_identifier | Required context |
|---|---|---|---|
CABLE | /vending/bills/lookup/cabletv | Smart-card or decoder number | None |
ELECTRICITY | /vending/bills/lookup/electricity | Meter or electricity account number | { "meter_type": "prepaid" } or { "meter_type": "postpaid" } |
BETTING | /vending/bills/lookup/betting | Betting account ID | None |
Sample Request
- Cable
- Electricity
- Betting
curl --location 'https://sandbox-api-d.squadco.com/vending/bills/lookup/cabletv' \
--header 'Authorization: Bearer YOUR_SECRET_KEY' \
--header 'Content-Type: application/json' \
--data '{
"service": "CABLE",
"provider": "DSTV",
"customer_identifier": "4250733661"
}'
curl --location 'https://sandbox-api-d.squadco.com/vending/bills/lookup/electricity' \
--header 'Authorization: Bearer YOUR_SECRET_KEY' \
--header 'Content-Type: application/json' \
--data '{
"service": "ELECTRICITY",
"provider": "IE",
"customer_identifier": "12345678910",
"context": {
"meter_type": "prepaid"
}
}'
curl --location 'https://sandbox-api-d.squadco.com/vending/bills/lookup/betting' \
--header 'Authorization: Bearer YOUR_SECRET_KEY' \
--header 'Content-Type: application/json' \
--data '{
"service": "BETTING",
"provider": "BETKING",
"customer_identifier": "39"
}'
Sample Response
- Cable
- Electricity
- Betting
{
"status": 200,
"success": true,
"message": "Success",
"data": {
"service": "CABLE",
"provider": "DSTV",
"customer_identifier": "4250733661",
"validation_token": "DSTV-261112691ab103fa72bcdc",
"customer_name": "INEC",
"current_product": {
"code": "DSTV_PREMIUM",
"name": "Dstv Premium",
"kobo_amount": 4450000,
"currency": "NGN"
}
}
}
{
"status": 200,
"success": true,
"message": "Success",
"data": {
"service": "ELECTRICITY",
"provider": "IE",
"customer_identifier": "12345678910",
"context": {
"meter_type": "prepaid"
},
"validation_token": "IE-2611121507b21cc52ce174",
"customer_name": "Ciroma Chukwuma Adekunle",
"minimum_vend": 350,
"account_type": "NMD",
"meter_type": "prepaid",
"address": "012 Fake Cresent, Fake City, Fake State",
"account_no": "12345678910",
"account_name": "Ciroma Chukwuma Adekunle",
"outstanding_debt": 0
}
}
{
"status": 200,
"success": true,
"message": "Success",
"data": {
"service": "BETTING",
"provider": "BETKING",
"customer_identifier": "39",
"validation_token": "BETKING-261116dd8871300aad5de1",
"customer_name": "QATestSub-GlobalBet-4",
"minimum_vend": 50,
"maximum_vend": 1000000
}
}
Error Responses
- 400: Bad Request
- 403: Unauthorized
{
"status": 400,
"success": false,
"message": "ERROR_MESSAGE",
"data": {}
}
{
"status": 403,
"success": false,
"message": "ERROR_MESSAGE",
"data": {}
}
Electricity lookups return minimum_vend; Betting lookups return both minimum_vend and maximum_vend. These limits are in naira. Check the amount against them before calling /vending/bills/vend, remembering that the vend amount is sent in kobo.
Vend
Every vend request needs the lookup validation_token, the service, the amount in kobo and the customer's contact details. Cable purchases also need products.
This API completes a purchase
Parameters
Body
validation_token*
String
The validation_token returned by the lookup endpoint. Single-use
service*
String
Service code used at lookup: CABLE, ELECTRICITY or BETTING
customer.phone_number*
String
Customer phone number
customer.email*
String
Customer email address
amount*
Number
Amount in kobo (₦500 = 50000). ELECTRICITY and BETTING: the purchase amount, within the lookup minimum_vend/maximum_vend. CABLE: the product's kobo_amount
products*
Array
Product objects ({ code }), using codes returned by /vending/bills/products. Required for CABLE, e.g. [{ "code": "DSTV_PREMIUM" }]
Purchase input per service
| Service | Vend input |
|---|---|
CABLE | products with the product code from /vending/bills/products, and amount set to that product's kobo_amount. |
ELECTRICITY | amount in kobo. It must be at least the lookup minimum_vend (in naira). |
BETTING | amount in kobo, within the lookup minimum_vend and maximum_vend (in naira). |
Sample Request
- Cable
- Electricity
- Betting
curl --location 'https://sandbox-api-d.squadco.com/vending/bills/vend' \
--header 'Authorization: Bearer YOUR_SECRET_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"validation_token": "DSTV-261112691ab103fa72bcdc",
"service": "CABLE",
"amount": 4450000,
"products": [
{ "code": "DSTV_PREMIUM" }
],
"customer": {
"phone_number": "08101234567",
"email": "customer@example.com"
}
}'
curl --location 'https://sandbox-api-d.squadco.com/vending/bills/vend' \
--header 'Authorization: Bearer YOUR_SECRET_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"validation_token": "IE-2611121507b21cc52ce174",
"service": "ELECTRICITY",
"amount": 50000,
"customer": {
"phone_number": "08101234567",
"email": "customer@example.com"
}
}'
curl --location 'https://sandbox-api-d.squadco.com/vending/bills/vend' \
--header 'Authorization: Bearer YOUR_SECRET_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"validation_token": "BETKING-26111674de5ff3b42fd441",
"service": "BETTING",
"amount": 5000,
"customer": {
"phone_number": "08101234567",
"email": "customer@example.com"
}
}'
Sample Response
A successful vend returns status: "success". Service-specific results are in meta_json: for Electricity, the meter token, total_units and receipt_number; for Cable, the purchased bouquet; for Betting, the funded account_id and customer_name. meta contains the same data as meta_json, encoded as a string.
- Cable
- Electricity
- Betting
{
"status": 200,
"success": true,
"message": "Success",
"data": {
"reference": "b415bc3f-5265-4d2b-9306-1f91541df5e4_44500_6107755_SBS5B8VU36",
"amount": "44500.00",
"merchant_amount": "43832.50",
"phone_number": "08101234567",
"email": "customer@example.com",
"merchant_id": "SBS5B8VU36",
"wallet_batch_id": "EUMXBV9AURZKE3LDGJRR4LK52WAF645",
"value_reference": null,
"network": null,
"transaction_id": null,
"type": "bills",
"action": "debit",
"status": "success",
"meta": "{\"amount\":44500,\"service\":\"CABLE\", ... }",
"meta_json": {
"amount": 44500,
"bouquet": {
"code": "DSTV_PREMIUM",
"name": "Dstv Premium",
"currency": "NGN",
"kobo_amount": 4450000
},
"service": "CABLE",
"products": [
{
"code": "DSTV_PREMIUM"
}
],
"provider": "DSTV",
"hp_profit": 356,
"total_profit": 1023.5,
"is_concession": false,
"provider_meta": {
"code": "DSTV",
"name": "DSTV",
"type": "tv",
"logo_url": null,
"hb_income_percent": 0.8,
"total_rate_percent": 2.3,
"third_party_rate_percent": 1.5
},
"response_code": "SUCCESS",
"merchant_amount": 43832.5,
"merchant_profit": 667.5,
"processed_status": "SUCCESS",
"validation_token": "DSTV-261112691ab103fa72bcdc",
"hp_wallet_batch_id": "EUMXBV9AURZKE3LDGJRRDDBNFLQF29G",
"merchant_reference": "b415bc3f-5265-4d2b-9306-1f91541df5e4",
"customer_identifier": "4250733661",
"merchant_amount_kobo": 4383250
},
"createdAt": "2026-11-12T09:35:07.755Z",
"updatedAt": "2026-11-12T09:35:13.909Z"
}
}
{
"status": 200,
"success": true,
"message": "Success",
"data": {
"reference": "f40f878c-6fff-447b-9f63-f7c5f9109fcd_500_4509165_SBS5B8VU36",
"amount": "500.00",
"merchant_amount": "496.00",
"phone_number": "08101234567",
"email": "customer@example.com",
"merchant_id": "SBS5B8VU36",
"wallet_batch_id": "EUMXBV9AURZKE3LDGJRR62GLRGJF7UD",
"value_reference": "0000-0000-0000-0000-0000",
"network": null,
"transaction_id": null,
"type": "bills",
"action": "debit",
"status": "success",
"meta": "{\"amount\":500,\"service\":\"ELECTRICITY\", ... }",
"meta_json": {
"token": "0000-0000-0000-0000-0000",
"amount": 500,
"address": "012 Fake Cresent, Fake City, Fake State",
"service": "ELECTRICITY",
"provider": "IE",
"hp_profit": 2,
"account_no": "12345678910",
"meter_type": "prepaid",
"amount_paid": 500,
"total_units": "12.8",
"account_name": "Ciroma Chukwuma Adekunle",
"meter_number": "12345678910",
"tariff_class": null,
"total_profit": 6,
"is_concession": false,
"provider_meta": {
"code": "IE",
"name": "Ikeja Electricity",
"type": "electricity",
"logo_url": "https://www.insideojodu.com/wp-content/uploads/2022/11/Ikeja-Electric-Vacancy.png",
"hb_income_percent": 0.4,
"total_rate_percent": 1.2,
"third_party_rate_cap": 1500,
"third_party_rate_percent": 0.8
},
"response_code": "SUCCESS",
"receipt_number": "1794474511249",
"merchant_amount": 496,
"merchant_profit": 4,
"processed_status": "SUCCESS",
"validation_token": "IE-2611121507b21cc52ce174",
"hp_wallet_batch_id": "EUMXBV9AURZKE3LDGJRR6NGTKXNH8UF",
"merchant_reference": "f40f878c-6fff-447b-9f63-f7c5f9109fcd",
"customer_identifier": "12345678910",
"merchant_amount_kobo": 49600
},
"createdAt": "2026-11-12T09:08:29.167Z",
"updatedAt": "2026-11-12T09:08:31.846Z"
}
}
{
"status": 200,
"success": true,
"message": "Success",
"data": {
"reference": "47c70abd-f5a5-4faa-8498-a9e4b8840fc1_50_9596498_SBS5B8VU36",
"amount": "50.00",
"merchant_amount": "50.00",
"phone_number": "08101234567",
"email": "customer@example.com",
"merchant_id": "SBS5B8VU36",
"wallet_batch_id": "EUMXBV9AURZKE3LDGJRR1DT9CN256ZD",
"value_reference": null,
"network": null,
"transaction_id": null,
"type": "bills",
"action": "debit",
"status": "success",
"meta": "{\"amount\":50,\"service\":\"BETTING\", ... }",
"meta_json": {
"amount": 50,
"service": "BETTING",
"currency": "NGN",
"provider": "BETKING",
"hp_profit": 0,
"account_id": "39",
"total_profit": 0,
"customer_name": "QATestSub-GlobalBet-4",
"is_concession": false,
"response_code": "SUCCESS",
"merchant_amount": 50,
"merchant_profit": 0,
"processed_status": "SUCCESS",
"validation_token": "BETKING-26111674de5ff3b42fd441",
"merchant_reference": "47c70abd-f5a5-4faa-8498-a9e4b8840fc1",
"customer_identifier": "39",
"merchant_amount_kobo": 5000
},
"createdAt": "2026-11-16T17:19:56.498Z",
"updatedAt": "2026-11-16T17:19:57.630Z"
}
}
Error Responses
- 400: Bad Request
- 403: Unauthorized
{
"status": 400,
"success": false,
"message": "ERROR_MESSAGE",
"data": {}
}
{
"status": 403,
"success": false,
"message": "ERROR_MESSAGE",
"data": {}
}
Transaction Status
Use the merchant reference to retrieve the latest state of a purchase. A final successful transaction has processed_status: "SUCCESS". A 202 response with processed_status: "PENDING" means the external result is still being confirmed; keep the reference and retry the status endpoint at next_retry_at when supplied.
This API retrieves the status of a transaction
Parameters
Path
merchant_reference*
String
The merchant_reference sent with the vend request
Sample Request
GET /vending/transactions/ORDER-20260914-00001
- 200: Success
- 202: Pending
- 400: Bad Request
- 403: Unauthorized
{
"status": 200,
"success": true,
"message": "Success",
"data": {
"transaction": {
"validation_token": "LOOKUP_TOKEN",
"merchant_reference": "ORDER-20260914-00001",
"service": "CABLE",
"provider": "DSTV",
"processed_status": "SUCCESS",
"response_code": "SUCCESS",
"customer_id": "41234567890",
"kobo_amount": 500000,
"currency": "NGN",
"product_code": "PRODUCT_CODE",
"created_at": "2026-09-14T12:00:00.000Z",
"details": {
"name": "Product name",
"code": "PRODUCT_CODE",
"kobo_amount": 500000,
"currency": "NGN"
}
}
}
}
{
"status": 202,
"success": true,
"message": "PENDING_MESSAGE",
"data": {
"transaction": {
"merchant_reference": "ORDER-20260914-00001",
"processed_status": "PENDING",
"next_retry_at": "NEXT_RETRY_TIMESTAMP"
}
}
}
{
"status": 400,
"success": false,
"message": "ERROR_MESSAGE",
"data": {}
}
{
"status": 403,
"success": false,
"message": "ERROR_MESSAGE",
"data": {}
}
Integration Rules
- Treat
validation_tokenas single-use and specific to its lookup. - Keep the
merchant_referencereturned inmeta_json; use it for status checks and safe retry handling. - Treat only
SUCCESSas final success. Do not resubmit a pending vend. - Use product codes returned by
/vending/bills/products; values and availability may change. - Do not expose or depend on vendor references or vendor-specific product codes.
A pending transaction is already in progress. Check its status using merchant_reference; do not submit another vend for the same purchase.
GO LIVE - Production
To use this API in production:
- Change the base URL for your endpoints from https://sandbox-api-d.squadco.com to https://api-d.squadco.com.
- Get production keys from your live account and replace the test authorization keys.