Reference
API reference
A small JSON-over-HTTPS API. Every request needs your secret key. Every response has the same envelope.
Basics
| Item | Type | Description |
|---|---|---|
Base URL | https://api.kepperhq.com/v2/gateway | |
Authorization | header | Use Bearer sk_live_… or Bearer sk_test_…. See Authentication. |
Content-Type | header | application/json on requests that have a body. |
Amounts | integer | Always in kobo (₦1 = 100). Never decimals. |
Rate limit | 300 requests per minute per key, of which 60 can be payment creations. Over the limit you get 429. |
Response envelope
{ "status": true, "message": "…", "data": { … }, "meta": { … } } // success
{ "status": false, "message": "What went wrong" } // errorCreate a payment
POST/payments
| Body | Type | Description |
|---|---|---|
amountrequired | integer | In kobo. From 10000 (₦100) to 1000000000 (₦10,000,000). |
channelrequired | string | card or bank_transfer. |
customer.emailrequired | string | The customer's email address. |
customer.name | string | Up to 100 characters. |
reference | string | Your unique ID for this payment: 6 to 64 letters, digits, ., - or _. We generate one if you leave it out, but sending your own makes retries safe. |
callbackUrl | string | An https URL. Required for card payments. The customer is sent there after checkout, with ?reference=… added. |
expiresInMinutes | integer | Bank transfers only, 10 to 1440. Defaults to 30. Card payments expire after 24 hours. |
metadata | object | Up to 20 string key/value pairs (values up to 500 characters), returned on the payment and in webhooks. |
currency | string | Only NGN. This is the default. |
Returns 201 with the new payment. If a payment with the same reference already exists and the request is the same, you get 200 and the existing payment back. If the request is different, you get 409.
201 Created
{
"status": true,
"message": "Payment created",
"data": {
"id": "pay_6744a1c2e4b0f3a9d1c2b3a4",
"object": "payment",
"reference": "order_1001",
"status": "pending",
"channel": "card",
"livemode": true,
"amount": 500000,
"fee": 7500,
"netAmount": 492500,
"currency": "NGN",
"customer": { "email": "ada@example.com", "name": "Ada Obi" },
"metadata": { "orderId": "1001" },
"checkoutUrl": "https://checkout.nomba.com/pay/…",
"bankAccount": null,
"callbackUrl": "https://yourshop.com/payment/complete",
"expiresAt": "2026-11-26T14:05:00.000Z",
"paidAt": null,
"createdAt": "2026-11-25T14:05:00.000Z"
}
}Retrieve a payment
GET/payments/:id
:id is the payment's id (pay_…) or your reference.
List payments
GET/payments?status=successful&channel=card&page=1&limit=50
Newest first. All query parameters are optional. limit can be up to 100, and the default is 24. The response meta has page, limit, total and totalPages.
Simulate a payment (test only)
POST/payments/:id/simulate
| Body | Type | Description |
|---|---|---|
statusrequired | string | successful or expired. |
The payment object
| Field | Type | Description |
|---|---|---|
id | string | Kepper's ID, for example pay_6744…. |
reference | string | Your reference. |
status | string | pending, successful or expired. Only successful means you've been paid. |
channel | string | card or bank_transfer. |
livemode | boolean | false for test payments. |
amount / fee / netAmount | integer | In kobo. netAmount = amount − fee, which is what reaches your wallet. |
checkoutUrl | string | null | Card payments: where to send the customer. |
bankAccount | object | null | Bank transfers: accountNumber, accountName, bankName, expiresAt. |
expiresAt | datetime | When a pending payment expires. |
paidAt | datetime | null | When the payment was confirmed. |
Status lifecycle
pending → successful, or pending → expired. A late bank transfer can move an expired payment to successful. A successful payment never changes.