Skip to main content

CreateOrderRequest

amountnumberrequired

Amount in dollars (e.g., 100.00 for $100, NOT cents). Minimum $20.

Possible values: >= 20

Example: 100
currencystring

ISO 4217 currency code. If omitted, defaults to your merchant's active currency. If provided, it MUST match your active currency — order creation rejects mismatches.

Supported: USD, EUR, GBP, INR, AED, AUD, CAD, JPY, SAR, USDT. Your account must have the currency assigned by admin before transacting.

Possible values: [USD, EUR, GBP, INR, AED, AUD, CAD, JPY, SAR, USDT]

Default value: USD
Example: USD
externalOrderIdstring

Your unique order ID for idempotency and reference. If provided, duplicate requests return the existing order.

Possible values: <= 100 characters

Example: ORD-12345
successUrlstring<uri>

URL to redirect customer after successful payment

Example: https://yoursite.com/payment/success
failureUrlstring<uri>

URL to redirect customer after failed payment

Example: https://yoursite.com/payment/failure
customer object

Customer details

namestring

Customer's full name

Example: John Doe
emailstring<email>

Customer's email address

Example: john@example.com
phonestring

Customer's phone number

Example: +1234567890
customerNamestring

Alternative to customer.name

customerEmailstring<email>

Alternative to customer.email

customerPhonestring

Alternative to customer.phone

billingAddress object

Address details

line1string

Street address line 1

Example: 123 Main Street
line2string

Street address line 2

Example: Apt 4B
citystring
Example: New York
statestring
Example: NY
postalCodestring
Example: 10001
countrystring

Two-letter country code (ISO 3166-1 alpha-2)

Default value: US
Example: US
shippingAddress object

Address details

line1string

Street address line 1

Example: 123 Main Street
line2string

Street address line 2

Example: Apt 4B
citystring
Example: New York
statestring
Example: NY
postalCodestring
Example: 10001
countrystring

Two-letter country code (ISO 3166-1 alpha-2)

Default value: US
Example: US
descriptionstring

Order description (shown on payment page)

Possible values: <= 500 characters

Example: Order for Product XYZ
metadata object

Custom key-value pairs for your reference (stored with the order)

property name*any

Custom key-value pairs for your reference (stored with the order)

Example: {"productId":"prod_123","userId":"user_456"}
expiryMinutesinteger

Order expiry time in minutes (default 2880 = 48 hours)

Possible values: >= 5 and <= 43200

Default value: 2880
Example: 2880
CreateOrderRequest
{
"amount": 100,
"currency": "USD",
"externalOrderId": "ORD-12345",
"successUrl": "https://yoursite.com/payment/success",
"failureUrl": "https://yoursite.com/payment/failure",
"customer": {
"name": "John Doe",
"email": "john@example.com",
"phone": "+1234567890"
},
"customerName": "string",
"customerEmail": "user@example.com",
"customerPhone": "string",
"billingAddress": {
"line1": "123 Main Street",
"line2": "Apt 4B",
"city": "New York",
"state": "NY",
"postalCode": "10001",
"country": "US"
},
"shippingAddress": {
"line1": "123 Main Street",
"line2": "Apt 4B",
"city": "New York",
"state": "NY",
"postalCode": "10001",
"country": "US"
},
"description": "Order for Product XYZ",
"metadata": {
"productId": "prod_123",
"userId": "user_456"
},
"expiryMinutes": 2880
}