Skip to main content
POST
Create checkout

Overview

Authenticate with X-API-Key only. A dashboard Authorization: Bearer token makes this a top-up of your own wallet, not a sale.
Create a hosted checkout session for a customer. This endpoint returns a checkout ID and checkout URL that you can use to redirect the customer and complete payment.

Authorizations

X-API-Key
string
header
required

API key for authentication.

Headers

Idempotency-Key
string

Makes a retry safe: the same key and body replays the first answer.

Maximum string length: 255
Pattern: ^[A-Za-z0-9_.:-]+$

Body

application/json
email
string<email>
required
amount
number
required

Major units (naira, dollars). At most two decimals.

currency
string
required

Lowercase wallet currency, e.g. ngn, usd, gbp, eur, kes, ghs.

first_name
string
last_name
string
partner_reference
string

Your order id. Echoed on GET checkout and in checkout.paid.

Required string length: 1 - 128
success_url
string<uri>

Absolute http(s) URL.

cancel_url
string<uri>

Absolute http(s) URL.

fee_bearer
enum<string>
default:customer
Available options:
customer,
merchant
line_items
object[]

quantity × unit_amount over all lines must equal amount.

Maximum array length: 100
payment_options
object[]
deprecated

Ignored: every live method is offered.

Response

Checkout created

status
boolean
data
object
error
any[]
message
string