POST
Initiate a payment collection

Authorizations

x-api-key
string
header
required

Your business API key, generated from the dashboard. Required on every business-facing endpoint.

Body

application/json
amount
string
required
Example:

"500"

fromCurrency
enum<string>
required

Fiat currencies: NGN, EUR, GBP, USD, KES, UGX, GHS, CAD, XOF, XAF. Crypto currencies: USDT, USDC, CNGN.

Available options:
NGN,
EUR,
GBP,
USD,
USDT,
USDC,
CNGN,
KES,
UGX,
GHS,
CAD,
XOF,
XAF
toCurrency
enum<string>
required

Fiat currencies: NGN, EUR, GBP, USD, KES, UGX, GHS, CAD, XOF, XAF. Crypto currencies: USDT, USDC, CNGN.

Available options:
NGN,
EUR,
GBP,
USD,
USDT,
USDC,
CNGN,
KES,
UGX,
GHS,
CAD,
XOF,
XAF
paymentReference
string
required

Unique reference you generate. Reusing one returns a 400.

Example:

"invoice-4471"

source
string
rateKey
string

Required when fromCurrency differs from toCurrency. Obtain from GET /api/qoutes/{fromCurrency}/{toCurrency}/{amount}.

narration
string
Example:

"Invoice #4471"

receipent
object

Required, with different sub-fields, when the active provider for fromCurrency/toCurrency is Paycrest and exactly one side of the pair is crypto: for a fiat→crypto collection (onramp) address and network are required; for a crypto→fiat collection (offramp) accountNumber, bankCode, and accountName are required (the source network goes on the top-level network field of PaymentRequest, not here). Not needed for same-currency or fiat↔fiat collections.

businessId
string

Only for platform businesses collecting on behalf of a sub-business: the sub-business's ID. Must be a business whose parentBusiness is your business, or the request is rejected.

network
string

Crypto→fiat (offramp) collections only: the network your customer will pay the crypto in from. Required in this case — unrelated to receipent.network, which is for the onramp direction instead.

Example:

"base"

Response

Collection created.

message
string
Example:

"Payment collection initiated successfully"

data
object
error
boolean
Example:

false