Skip to main content
POST
Create a payment link
Creates a new payment link that can be shared with a customer to collect payment. Returns a hosted checkout URL — no frontend required on your end.
pricing.type drives which of amount, minAmount/maxAmount, or packages you need to set: fixed needs amount, variable needs minAmount/maxAmount (or neither, for customer_choice), package needs packages.
usageType: "limited_use" requires maxUses. single_use and multi_use ignore it.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
type
enum<string>
required
Available options:
standard,
invoice,
donation
pricing
object
required
enabledPaymentMethods
enum<string>[]
required
Available options:
mobile_money,
bank,
card,
crypto
usageType
enum<string>
required
Available options:
single_use,
multi_use,
limited_use
collectCustomerInfo
object
required

Whether email, phone, name, and address are required, optional, or not collected at checkout.

description
string
paymentMethodConfig
object

Restricts which providers/currencies/networks/countries are offered per payment method. All fields optional — omit to allow everything enabled on your account.

maxUses
number

Used when usageType is limited_use.

expiresAt
string<date-time>
afterPayment
object
callbackUrl
string
Example:

"https://yourdomain.com/webhook"

branding
object
metadata
object

Response

success
boolean
Example:

true

message
string
Example:

"Payment link created successfully"

data
object