Skip to main content
POST
Refund a payment

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}$

Path Parameters

chargeId
string<uuid>
required

Body

application/json
amount
string
required

Coins to refund, in the coin's smallest unit, as a string.

pin
string
required

The signed-in person's 6-digit PIN.

expectedSendAmount
string

The sendAmount from the quote you showed. If the rate moved and it would change, the request is refused with 409 REFUND_QUOTE_CHANGED and the new amount.

Response

The refund. It may be pending approval or on hold, not yet sent.

refundId
string<uuid>
chargeId
string<uuid>
amount
string

Coins the sale is reduced by, in the coin's smallest unit.

sendAmount
string

Coins actually sent. Never more than amount. Less when the naira got more than 1% weaker since the sale.

asset
string
destinationAddress
string

The wallet that paid. Refunds cannot go anywhere else.

status
enum<string>
Available options:
pending,
processing,
completed,
failed
merchantApprovalStatus
enum<string> | null

pending means a second owner or admin must approve it.

Available options:
not_required,
pending,
approved,
rejected,
cancelled
scheduledFor
string<date-time> | null

When a hold ends and the refund is sent.

rateBasis
enum<string> | null
Available options:
original,
current,
capped
moveBps
integer | null

How far the market rate moved against the customer since the sale, in basis points.

merchantDebitKobo
string | null

Naira taken from your balance, in kobo.

failureReason
string | null
txHash
string | null
createdAt
string<date-time>
completedAt
string<date-time> | null