Kepper Developers

Reference

API reference

A small JSON-over-HTTPS API. Every request needs your secret key. Every response has the same envelope.

Basics

ItemTypeDescription
Base URLhttps://api.kepperhq.com/v2/gateway
AuthorizationheaderUse Bearer sk_live_… or Bearer sk_test_…. See Authentication.
Content-Typeheaderapplication/json on requests that have a body.
AmountsintegerAlways in kobo (₦1 = 100). Never decimals.
Rate limit300 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" }                      // error

Create a payment

POST/payments
BodyTypeDescription
amountrequiredintegerIn kobo. From 10000 (₦100) to 1000000000 (₦10,000,000).
channelrequiredstringcard or bank_transfer.
customer.emailrequiredstringThe customer's email address.
customer.namestringUp to 100 characters.
referencestringYour 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.
callbackUrlstringAn https URL. Required for card payments. The customer is sent there after checkout, with ?reference=… added.
expiresInMinutesintegerBank transfers only, 10 to 1440. Defaults to 30. Card payments expire after 24 hours.
metadataobjectUp to 20 string key/value pairs (values up to 500 characters), returned on the payment and in webhooks.
currencystringOnly 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
BodyTypeDescription
statusrequiredstringsuccessful or expired.

The payment object

FieldTypeDescription
idstringKepper's ID, for example pay_6744….
referencestringYour reference.
statusstringpending, successful or expired. Only successful means you've been paid.
channelstringcard or bank_transfer.
livemodebooleanfalse for test payments.
amount / fee / netAmountintegerIn kobo. netAmount = amount − fee, which is what reaches your wallet.
checkoutUrlstring | nullCard payments: where to send the customer.
bankAccountobject | nullBank transfers: accountNumber, accountName, bankName, expiresAt.
expiresAtdatetimeWhen a pending payment expires.
paidAtdatetime | nullWhen 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.

API reference | Kepper Developers