Skip to main content

Utilities Unified API

One lookup-and-vend flow for utility and digital-service purchases: Cable TV, Electricity and Betting.​
info

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
Amount convention

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​

ServiceWhat it supportsProvider codes
CABLETV subscriptions and bouquet purchasesDSTV, GOTV, STARTIMES
ELECTRICITYPrepaid and postpaid electricity purchasesIE, AEDC, YEDC, BEDC, EKEDC, IBEDC, KEDCO, KAEDC, PHED, EEDC, APLE, JED
BETTINGBetting wallet fundingBETKING
Source of truth

Product catalogues and configured service routes can change, so always send the product code values returned by /vending/bills/products.

Endpoints​

OperationMethodPathApplies to
List productsGET/vending/bills/products?service={service}&provider={provider}Cable, Electricity
Validate customerPOST/vending/bills/lookup/{service_path} (cabletv, electricity, betting)All services
Complete purchasePOST/vending/bills/vendAll services
Check transactionGET/vending/transactions/{merchant_reference}All services

Standard Flow​

  1. For Cable and Electricity, optionally retrieve /vending/bills/products.
  2. Call the service's /vending/bills/lookup/... endpoint to validate the customer. Save its validation_token.
  3. Call /vending/bills/vend with that token, the service, customer contact details and the service-specific purchase input.
  4. If vend returns HTTP 202 / PENDING, query /vending/transactions/{merchant_reference}. Do not vend again.

Response Codes​

HTTP statusMeaning
200Success. The request completed.
202Pending. The purchase is in progress; check its status with /vending/transactions/{merchant_reference}.
400Bad request. A field is missing or invalid. Check the message and fix the request.
403Unauthorized. 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.

GET
https://sandbox-api-d.squadco.com/vending/bills/products

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​

{
"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"
}
]
}
}
}

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_vend and maximum_vend).
POST
https://sandbox-api-d.squadco.com/vending/bills/lookup/{service_path}

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​

ServiceLookup pathcustomer_identifierRequired context
CABLE/vending/bills/lookup/cabletvSmart-card or decoder numberNone
ELECTRICITY/vending/bills/lookup/electricityMeter or electricity account number{ "meter_type": "prepaid" } or { "meter_type": "postpaid" }
BETTING/vending/bills/lookup/bettingBetting account IDNone

Sample Request​

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"
}'

Sample Response​

{
"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"
}
}
}

Error Responses​

{
"status": 400,
"success": false,
"message": "ERROR_MESSAGE",
"data": {}
}
Service-specific limits

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.

POST
https://sandbox-api-d.squadco.com/vending/bills/vend

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​

ServiceVend input
CABLEproducts with the product code from /vending/bills/products, and amount set to that product's kobo_amount.
ELECTRICITYamount in kobo. It must be at least the lookup minimum_vend (in naira).
BETTINGamount in kobo, within the lookup minimum_vend and maximum_vend (in naira).

Sample Request​

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"
}
}'

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.

{
"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"
}
}

Error Responses​

{
"status": 400,
"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.

GET
https://sandbox-api-d.squadco.com/vending/transactions/{merchant_reference}

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
{
"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"
}
}
}
}

Integration Rules​

  • Treat validation_token as single-use and specific to its lookup.
  • Keep the merchant_reference returned in meta_json; use it for status checks and safe retry handling.
  • Treat only SUCCESS as 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.
Pending transaction rule

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:

  1. Change the base URL for your endpoints from https://sandbox-api-d.squadco.com to https://api-d.squadco.com.
  2. Get production keys from your live account and replace the test authorization keys.