Skip to main content
POST
Create a payment request and return a payment_token for iframe flow

Authorizations

Authorization
string
header
required

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

Body

application/json

Request body

customer
Payment Customer Input · object
required

Customer information for payment flows

order
object
required
redirect_urls
object
required
merchant_id
string<uuid>

Merchant ID. Defaults to the logged-in merchant if not provided. Required for admin tokens.

Example:

"550e8400-e29b-41d4-a716-446655440000"

device_type
enum<string>
default:web

Platform/device type for the payment request

Available options:
web,
ios,
android
Example:

"ios"

billing_address
Address · object

A physical address

simulation
object

Sandbox simulation config. Honoured only when the upstream provider is a fake/sandbox backend; live providers ignore it.

webhook_endpoints
string[]

Optional. Up to 10 registered webhook endpoints to fan this payment's webhooks out to, each signed with its own secret. An endpoint can be test-only, live-only, or both. Omit to use the no-reference precedence: the legacy default URL, then the merchant's default endpoint, then the single active endpoint.

Maximum array length: 10

Name or id of a registered webhook endpoint to route this payment's webhooks to.

Response

Created

success
boolean
required

Indicates if the request was successful

Example:

true

data
object
required