Pay Sef API documentation
The Pay Sef API lets your platform buy data, airtime, cable TV subscriptions, electricity tokens and exam PINs from your Pay Sef wallet, and tells you the result of every order.
- QuickstartMake your first sandbox purchase in a few minutes.
- AuthenticationTest and live keys and how to keep them safe.
- SandboxRecipient numbers that trigger each outcome.
- WebhooksReceive and verify order events.
The basics
The API is organised around REST. Requests and responses are JSON over HTTPS, amounts are whole kobo (₦1 = 100 kobo) in fields ending _kobo, and every response uses the same envelope, so one parser handles every endpoint.
| Value | |
|---|---|
| Sandbox base URL (test keys only) | https://sandbox.paysef.com/api/v1 |
| Live base URL | https://api.paysef.com/api/v1 |
| Authentication | Authorization: Bearer <api key> |
| Content type | application/json |
| Test keys | pays_test_… |
| Live keys | pays_live_… |
| Money | Integer kobo, e.g. amount_kobo: 50000 for ₦500 |
| Purchases | Idempotency-Key header required |
{
"success": true,
"status_code": 200,
"message": "Human-readable summary.",
"data": { },
"meta": {
"request_id": "01M55DHS5E30CR6DR0GC65V3GP",
"timestamp": "2026-10-17T17:11:30.734795Z"
}
}Errors set success to false and add a stable error_code you can branch on. See Responses and errors.
API reference
One page per resource, each endpoint with parameters, request examples and responses.
Need help with an integration?
Email support@paysef.com with the request_id from the response and the time of the request.