CommonApiVersion 1.0.1
Query Order Status
https://pay.globepay.co/api/v1.0/gateway/partners/{partner_code}/orders/{order_id}Including QR Code orders, JSAPI orders and Retail orders
Header
| Field | Description |
|---|---|
Accept | application/json |
Path Variable
| Field | Type | Description |
|---|---|---|
partner_code | String | Required, Partner code |
order_id | String | Required, Partner order id |
Query Params
| Field | Type | Description |
|---|---|---|
time | Long | Required, UTC timestamp in milliseconds |
nonce_str | String | Required, Random string |
sign | String | Required, Sign |
Success 200
| Field | Type | Description |
|---|---|---|
return_code | String | Execution result |
result_code | String |
Use the same order id to call create order API can renew the order. PAYING, PAY_SUCCESS orders cannot be renewed. |
order_id | String | Order id in GlobePay, which is also WeChat order id. The final order id which is paid may be different from this one |
partner_order_id | String | Partner order id |
total_fee | int | Order amount, which uses the base unit of current currency |
real_fee | int | Actual paid amount.(Equal to total fee at the moment. After coupon feature is finished, this value may be different. ) |
rate | Double | Exchange Rate used while trading. 0.01 GBP=?CNY |
customer_id | String | Customer ID |
pay_time | String | Time when order is paid(yyyy-MM-dd HH:mm:ss, UTC+10) |
create_time | String | Time when order is created(according to the latest order)(yyyy-MM-dd HH:mm:ss, UTC+10) |
currency | String | Currency. Default value is GBP. |
channel | String | Channel. Alipay,Wechat. |
Error Code
| Name | Description |
|---|---|
ORDER_NOT_EXIST | Order does not exist |
ORDER_MISMATCH | Order is not belong to this partner |
SYSTEMERROR | Exception inside system |
INVALID_SHORT_ID | Partner code is invalid or there is no partner associated with this code |
SIGN_TIMEOUT | Sign expired, the difference between time and the server time is more than 5 minutes |
INVALID_SIGN | Invalid sign |
PARAM_INVALID | Parameters are invalid. See return_msg for more details. |
NOT_PERMITTED | Gateway payment permission has not been enabled for this partner |
INVALID_CHANNEL | Channel name is not available, check the Capitalize |
ERROR
| Name | Description |
|---|---|
return_code | Error Code |
return_msg | Error Description |
