POST
/
platformapi
/
chainup
/
open
/
opay
/
merchantBillingDay
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

appKey
string
required

Merchant AppKey

Example: xxx_xxx

orderType
string
required

Order type (1=payment order; 11=transfer order), do not pass query all orders.

Example: 1

day
string
required

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

userId
integer

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

startDate
string

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

endDate
string

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

pageNum
string
required

Query the first few pages, the same paging logic; do not pass to check all.

Example: 1

pageSize
string
required

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

sign
string
required

Authorized signature

Response

200 - application/json
code
string

Return code.

msg
string

Success or failure message.

data
object