Skip to main content

CreateOrderResponse

successboolean
Example: true
data object
order object
orderIdstring
Example: ORD_1701234567890_abc123
externalOrderIdstring
Example: ORD-12345
transactionIdstring
Example: TXN_1701234567890_789xyz
amountnumber
Example: 100
currencystring

ISO 4217 currency code (USD, EUR, GBP, INR, AED, AUD, CAD, JPY, SAR, USDT).

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

Example: USD
statusstring
Example: created
expiresAtstring<date-time>
duplicateboolean

True if this is a duplicate order (idempotent response)

Example: false
paymentPageUrlstring<uri>

URL to redirect customer for payment

Example: https://pay.uplef.com/pay/abc123def456...
accessTokenstring

Access token for the payment page

Example: abc123def456...
availablePaymentMethodsstring[]

Payment methods available for this order

Example: ["crypto","card"]
feeBreakdownobject

Estimated fee breakdown (if available)

gatewayobject

Selected gateway info (if available)

CreateOrderResponse
{
"success": true,
"data": {
"order": {
"orderId": "ORD_1701234567890_abc123",
"externalOrderId": "ORD-12345",
"transactionId": "TXN_1701234567890_789xyz",
"amount": 100,
"currency": "USD",
"status": "created",
"expiresAt": "2024-07-29T15:51:28.071Z"
},
"duplicate": false,
"paymentPageUrl": "https://pay.uplef.com/pay/abc123def456...",
"accessToken": "abc123def456...",
"availablePaymentMethods": [
"crypto",
"card"
],
"feeBreakdown": {},
"gateway": {}
}
}