Skip to main content
POST
Create a charge

Authorizations

Authorization
string
header
required

Your secret API key from Developers → API keys. A key can be limited in the dashboard: read only (GET requests only), allowed IP addresses, and an expiry date. A request outside a limit is refused with 401 or 403 and a message saying which limit.

Headers

Idempotency-Key
string

A unique value for this request, 8 to 64 characters (letters, numbers, dots, dashes, underscores, colons). Send the same value when retrying: the first answer is returned with the header Idempotent-Replayed: true and nothing is created twice. Kept for 24 hours. The same key with a different request returns 422; the same key while the first request is still running returns 409.

Required string length: 8 - 64
Pattern: ^[A-Za-z0-9._:-]{8,64}$

Body

application/json
asset
enum<string>
required

Coin to quote in. See Networks.

Available options:
USDT_BSC_MAINNET,
USDT_TRON_MAINNET,
USDT_SOLANA_MAINNET,
USDC_ETH_MAINNET,
USDC_SOLANA_MAINNET,
BTC_MAINNET,
USDC_ETH_TEST5_AN74,
USDT_BSC_TEST,
USDC_SOLANA_DEVNET,
BTC_TEST
Example:

"USDT_BSC_MAINNET"

amountNgn
string

Whole naira, digits only. Send this or amount.

Pattern: ^[1-9]\d{0,11}$
Example:

"25000"

amount
string

Coin amount in its smallest unit. Send this or amountNgn.

Pattern: ^[1-9]\d{0,17}$
reference
string

Your id for this payment. Reusing it returns the same charge.

Example:

"acme_order_1001"

Response

The charge. Addresses are added a few seconds later.

chargeId
string<uuid>
reference
string
status
enum<string>
Available options:
pending,
processing,
paid,
underpaid,
expired,
failed,
cancelled
asset
string
amount
string

What the customer pays, smallest unit, fee included

feeAmount
string

LuminPay fee inside amount

amountNgn
string | null

Naira amount in kobo

rate
string | null

Naira per US dollar

address
string | null
addresses
object[]
txHash
string | null
expiresAt
string<date-time>