Skip to main content

Misc API

Look up supported services.

Environment

The examples below use sandbox: https://sandbox.payscribe.ng/api/v1. Switch to https://api.payscribe.ng/api/v1 only with a production key after completing the go-live checklist.


List Services

Fetch available services grouped by category.

GET /misc/services?group_by=betting

Query Parameters

FieldTypeRequiredDescription
group_bystringNoOne of airtime, data, tv, electricity, recharge_card, betting, internet, education, voucher. Omit it (or pass all) to fetch every service across categories.
curl -X GET "https://sandbox.payscribe.ng/api/v1/misc/services?group_by=betting" \
-H "Authorization: Bearer $PAYSCRIBE_API_KEY"

Response

{
"status": true,
"description": "Service looked up successfully!",
"message": {
"details": [
{
"id": "bet9ja",
"title": "Bet9ja",
"slug": "bet9ja",
"category": "betting",
"active": true,
"logo_url": "https://res.cloudinary.com/.../bet9ja.png"
}
]
},
"status_code": 200
}

message.details is a flat array (not wrapped in an object with total/page, unlike the paginated list endpoints elsewhere in this API) — there is no pagination. Note that id here is the provider's short network code (e.g. bet9ja), not a numeric database ID.

An unrecognized group_by value returns a 400 listing the accepted values; a group_by with no matching services returns 404 Result not found!.

Was this page helpful?

Report a docs issue →