Skip to main content
POST
Create hosted payment

Authorizations

x-api-key
string
header
required

API key for merchant authentication required for most endpoints

Body

application/json
amount
number
required

Payment amount

Example:

100

currency
string
required

Payment currency

Example:

"USDC"

network
enum<string>
required

Network for payment

Available options:
SUI
Example:

"SUI"

customer
object

Customer information (optional)

customerId
string

Existing customer ID (optional)

Example:

"cmxsds23..."

txRef
string

Unique transaction reference

Example:

"cmxsds..."

redirectUrl
string

URL to redirect after payment

Example:

"www.example.com"

Response

Payment created successfully

success
boolean
Example:

true

message
string
Example:

"Payment created successfully"

data
object