Merchant Daily Posting Statement
curl --request POST \
--url http://service.xxx.com/platformapi/chainup/open/opay/merchantBillingDay \
--header 'Content-Type: application/json' \
--data '{
"appKey": "xxx_xxx",
"sign": "xxx",
"orderType": "1",
"userId": 230000,
"startDate": "2099-01-01 00:00:00",
"endDate": "2099-01-01 23:59:59",
"pageNum": 1,
"pageSize": 200
}'
{
"code": "",
"msg": "",
"data": {
"count": 1000,
"list": [
{
"merchantUserId": 23000,
"appOrderId": "100000019",
"payCoinSymbol": "btc",
"orderAmount": 10,
"orderType": 1,
"userId": 230000,
"openId": "2ae04ed9165624419bad68e9e0f3f29fbd",
"createTime": "11200321123",
"payTime": "320012321"
},
{
"merchantUserId": 23000,
"appOrderId": "100000019",
"payCoinSymbol": "btc",
"orderAmount": 10,
"orderType": 1,
"userId": 230000,
"openId": "2ae04ed9165624419bad68e9e0f3f29fbd",
"createTime": "11200321123",
"payTime": "320012321"
}
]
}
}
Query Parameters
Merchant AppKey
Example: xxx_xxx
Order type (1=payment order; 11=transfer order), do not pass query all orders.
Example: 1
Statistics date, format yyyy-MM-dd. If day, startDate, and endDate are all omitted, orders for the current day are queried.
Example: 2099-01-01
Payer's user ID. If omitted, all users are queried. If only userId is passed without day, startDate, or endDate, orders for the current day are queried by default.
Example: 230000
Start time, accurate to seconds, yyyy-MM-dd HH:mm:ss. When passed together with endDate, it takes precedence over day.
Example: 2099-01-01 00:00:00
End time, accurate to seconds, yyyy-MM-dd HH:mm:ss. When passed together with startDate, it takes precedence over day.
Example: 2099-01-01 23:59:59
Query the first few pages, the same paging logic; do not pass to check all.
Example: 1
The size of each page, the same paging logic; do not pass to check 2000 (the maximum is 2000, data more than 2000 please paging query).
Example: 200
Authorized signature
Response
Return code.
Success or failure message.
curl --request POST \
--url http://service.xxx.com/platformapi/chainup/open/opay/merchantBillingDay \
--header 'Content-Type: application/json' \
--data '{
"appKey": "xxx_xxx",
"sign": "xxx",
"orderType": "1",
"userId": 230000,
"startDate": "2099-01-01 00:00:00",
"endDate": "2099-01-01 23:59:59",
"pageNum": 1,
"pageSize": 200
}'
{
"code": "",
"msg": "",
"data": {
"count": 1000,
"list": [
{
"merchantUserId": 23000,
"appOrderId": "100000019",
"payCoinSymbol": "btc",
"orderAmount": 10,
"orderType": 1,
"userId": 230000,
"openId": "2ae04ed9165624419bad68e9e0f3f29fbd",
"createTime": "11200321123",
"payTime": "320012321"
},
{
"merchantUserId": 23000,
"appOrderId": "100000019",
"payCoinSymbol": "btc",
"orderAmount": 10,
"orderType": 1,
"userId": 230000,
"openId": "2ae04ed9165624419bad68e9e0f3f29fbd",
"createTime": "11200321123",
"payTime": "320012321"
}
]
}
}