Get Order Details
Get order details.
Interface Address:
/papi/order/detailsRequest Method:
POSTContent-Type:
application/jsonHeader Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| X-Access-Key | string | Yes | API access key ID. See API Rules for authentication |
| X-Signature | string | Yes | Signature value, Base64-encoded HMAC-SHA256 result |
| X-Timestamp | string | Yes | Millisecond-level Unix timestamp (13 digits) |
| X-Nonce | string | Yes | Random string, 10~32 lowercase letters and digits |
Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| orderNo | string | Yes | Order number |
Request Example:
{
"orderNo": "MO202608101957320120006"
}Response Parameters:
| Parameter | Type | Description |
|---|---|---|
| code | integer | Error code. See Error Codes |
| data | object | Return data |
| ├─ merchantOrderId | string | Merchant order number |
| ├─ transactionId | string | Transaction ID |
| ├─ status | integer | Payment status (1-pending, 2-success, 3-failed) |
| ├─ productName | string | Product name |
| ├─ amount | integer | Order amount (US cents) |
| ├─ amountYuan | number | Order amount (USD) |
| ├─ payMethod | string | Payment method |
| ├─ payUrl | string | Payment URL |
| ├─ payType | integer | Payment type |
| ├─ payIcon | string | Payment icon |
| ├─ qrCodeUrl | string | QR code URL |
| ├─ description | string | Order description |
| ├─ createTime | integer | Creation time |
| ├─ payTime | integer | Payment time |
| ├─ payScene | integer | Payment scene |
| ├─ productType | integer | Product type |
| ├─ optType | integer | Operation type |
| ├─ currency | string | Currency type |
| ├─ multiCurrencyDisplay | string | Multi-currency display |
| ├─ expires | integer | Expiration time |
| ├─ payParams | object | Payment parameters |
| ├─├─ key | object | key |
| msg | string | Error message |
Response Example:
{
"code": 0,
"data": {
"merchantOrderId": "",
"transactionId": "",
"status": 0,
"productName": "",
"amount": 0,
"amountYuan": 0,
"payMethod": "",
"payUrl": "",
"payType": 0,
"payIcon": "",
"qrCodeUrl": "",
"description": "",
"createTime": 0,
"payTime": 0,
"payScene": 0,
"productType": 0,
"optType": 0,
"currency": "",
"multiCurrencyDisplay": "",
"expires": 0,
"payParams": {}
},
"msg": ""
}Wallet payment rules
Wallet payment uses payCode=WALLET and providerCode=INTERNAL. Mixed payment uses the actual online channel plus an integer walletPayAmount in USD cents, greater than zero and below the calculated payable total; do not submit onlinePayAmount. Recharge orders cannot use wallet or mixed payment. On timeout or uncertain payment status, query the original order and transactions before retrying. Cancellation or switching to wallet payment requires reliable confirmation that an existing online payment is closed. Wallet deductions are returned against the original transaction when cancellation is permitted.
