Skip to main content
POST
Cancel a conversion

Authorizations

Authorization
string
header
required

An API key in the Authorization header, for example Authorization: Bearer rk_test_. Test keys start with rk_test; the key is shown once, when it is created or rotated.

Headers

Idempotency-Key
string
required

A client-chosen key, 1 to 255 printable ASCII characters with no spaces, that makes a retry of this request return the first response instead of running it again.

Required string length: 1 - 255
Pattern: ^[\x21-\x7E]+$

Path Parameters

id
string
required

The conversion id, prefixed fxc_.

Response

The cancelled conversion after release of the hold in the key's mode.

id
string
required

The conversion's id, prefixed fxc_.

quote_id
string
required

The quote the conversion was created from, prefixed fxq_.

status
enum<string>
required

Where the conversion is: pending_approval and needs_review wait for an admin; completed, denied and cancelled are final.

Available options:
pending_approval,
needs_review,
completed,
denied,
cancelled
usd_amount
object
required

The USD the conversion credits to the USD wallet once completed.

ngn_amount
object
required

The naira held while it waits, then charged: usd_amount at sell_rate, rounded up to the kobo.

sell_rate
string
required

Naira per dollar locked from the quote, exact, as a decimal string with twelve places; never rounded.

created_at
string<date-time>
required

When the conversion was created.

decided_at
null | string<date-time>
required

When it was completed, denied or cancelled; null while it waits.

completed_at
null | string<date-time>
required

When the naira was charged and the USD credited; null unless completed.

denial_reason
null | string
required

The admin's reason for a denial; null unless denied.

cancel_reason
null | string
required

customer_cancelled, approval_expired, or price_changed for an order's conversion cancelled because the card's price rose while it waited; null unless cancelled.

order_id
null | string
required

The order this conversion buys dollars for, prefixed ord_; null for a conversion the business created itself. Only the order's own cancel can cancel it.