CreateOrderResponse
successboolean
Example:
truedata object
order object
orderIdstring
Example:
ORD_1701234567890_abc123externalOrderIdstring
Example:
ORD-12345transactionIdstring
Example:
TXN_1701234567890_789xyzamountnumber
Example:
100currencystring
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:
USDstatusstring
Example:
createdexpiresAtstring<date-time>
duplicateboolean
True if this is a duplicate order (idempotent response)
Example:
falsepaymentPageUrlstring<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": {}
}
}