Initiate Buy (with Customer)

Create a new customer and initiate a Buy (fiat collection) transaction.

Creates a new customer and initiates a fiat collection transaction. The user pays fiat via bank transfer or hosted checkout.

Endpoint

POST /v1/buy

Authentication

Header
Value

x-api-key

Your API key

Request body

Field
Type
Required
Description

firstName

string

Yes

Customer's first name (min 1 character)

lastName

string

Yes

Customer's last name (min 1 character)

email

string

Yes

Customer's email address

phoneNumber

string

No

Customer's phone number (E.164 format)

fiatAmount

number

Yes

Fiat amount to collect

businessFeeInFiat

number

No

Your business fee in fiat

fiatCurrency

string

Yes

Fiat currency. See Supported Currencies

reference

string

Yes

Your unique reference (UUID)

redirectUrl

string

No

Redirect URL after checkout

note

string

No

Transaction note

Example request

Example response

  • buy.success — Payment received and confirmed

  • buy.failed — Payment failed

  • buy.mismatch — Amount received differs from expected

Last updated