Create Settlement data

GET {{base_url}}/api/v1/finance/settlements/:date?signature={{signature}}&timestamp=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}
MethodGET
Acceptapplication/json

Request parameter

path parameter
nameLocationTypesrequiredinstruction
yyyymmddpathstringYesThe year, month and day to be queried, such as 20210803
channelquerystringYesthe channel need to query, you should query one by one
midquerystringYesthe mid of the request.
signaturequerystringYesRequest signature
timestampquerystringYesTimestamp

Request URL example

https://sandbox.vip.ksher.net/api/v1/finance/settlements/20220310?channel=wechat&signature=6A8139EF256F9AAF3D7DEDE137DC619D017814FFFFEF4ED2FE9F54C41F338E1B&timestamp=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

KeyDatatypeRequiredDescription
signaturestringRequest signature
timestampnumberTimestamp
channelstringthe channel need to query, you should query one by one
midstringthe mid of the request.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring