Appearance
Query a Pay-Out Order
- Requests use http-form-post encoding
application/x-www-form-urlencoded - Responses use JSON encoding
application/json - Gateway : https://www.lg-pay.com/api/deposit/query
The Request paramters :
| Field | Meaning | Type | Required |
|---|---|---|---|
| app_id | Your Merchant ID | String | True |
| order_sn | uploaded in Create request paramters | String | True |
| sign | md5_hash, refer to: Signature | String | True |
The Response
| Field | Meaning | Type | Required |
|---|---|---|---|
| status | 1 means the order is paid0 means this order is failed5 means this order is processing, please wait, finally all orders will end with status =1 or 0 | Integer | True |
| msg | order message, it is helpful when you get a callback with status==0 | String | True |
| data.money | The amount deducted from your balance. | String | True |
Sample Response Json
json
{
"status":1, // 1 means this order has been paid successfully , 0 means not paid
"msg":"ok", // when a request is failed, please read msg to find out why
{
"data":{
"money":5000 // The money your client actually paid, times 100x
}
}
}