Create Settlement data
GET {{base_url}}/api/v1/finance/settlements/:date?signature={{signature}}×tamp=1647228347&channel=truemoney&mid=mch35618
Create Settlement data
Settlement report is mean report ksher already tranfer cash to merchant. It will only display transaction ksher tranfer to merchant.
Create Settlement data for check detail next step
API
URL | /api/v1/finance/settlements/{yyyymmdd} |
---|---|
Method | GET |
Accept | application/json |
Request parameter
path parameter
name | Location | Types | required | instruction |
---|---|---|---|---|
yyyymmdd | path | string | Yes | The year, month and day to be queried, such as 20210803 |
channel | query | string | Yes | the channel need to query, you should query one by one |
mid | query | string | Yes | the mid of the request. |
signature | query | string | Yes | Request signature |
timestamp | query | string | Yes | Timestamp |
Request URL example
https://sandbox.vip.ksher.net/api/v1/finance/settlements/20220310?channel=wechat&signature=6A8139EF256F9AAF3D7DEDE137DC619D017814FFFFEF4ED2FE9F54C41F338E1B×tamp=20220310111213
Response result
Successful response example
{
"error_message": "Successful",
"data": {
"transfer_amount": 0,
"amount": 100,
"balance": 0,
"other_fee": 0,
"channel": "wechat",
"transfer": false,
"refund": 0,
"count": 3,
"fee": 1,
"currency": "THB",
"refund_fee": 0,
"end": "2022-03-09",
"net": 99,
"reference_id": "20220310_35618_XVHNDY",
"start": "2022-03-09",
"adjustment": 0,
"time": "2022-03-10 09:57:09"
},
"error_code": "SUCCESS",
"signature": "6A8139EF256F9AAF3D7DEDE137DC619D017814FFFFEF4ED2FE9F54C41F338E1B",
"timestamp": "20220310111213",
"mid": "35618"
}
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
signature | string | Request signature | |
timestamp | number | Timestamp | |
channel | string | the channel need to query, you should query one by one | |
mid | string | the mid of the request. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |