Documentation/API Reference

API REFERENCE

Transaction details

POSThttps://mapi.yabandpay.com/Payments
Live API
API PLAYGROUND · Live API

Transaction details

POSThttps://mapi.yabandpay.com/Payments
Automatically signed with your credentials

Request parameters5

Required fields first

Transaction details

commandRequiredstringdata.commandgetTradebillinfo
nonce_stringRequiredstringdata.nonce_stringRandom string, no longer than 32 characters
Optional parameters 3
clearing_idOptionalstringdata.clearing_idClearing report ID
start_timeOptionalstringdata.start_timeTransaction start time
end_timeOptionalstringdata.end_timeTransaction end time

Credentials stay on this page. Your secret key is never stored or sent to the documentation server.

This API queries transaction details in YabandPay clearing reports, or queries transaction details by transaction date range.

Tip

  1. Transaction details include only transactions involving fund clearing, such as successful payments or refunds. They exclude transactions such as cancellations and authorizations.
  1. When querying by date range, the range must not exceed one year.
  1. Transactions older than 7 years cannot be queried.
  1. Only merchant super administrator accounts can call this API. Operator and cashier accounts are not authorized to call it.
ParameterTypeDescriptionRequired
userStringUID of the super administrator accountRequired
signStringSignatureRequired
methodStringv3.GetTradebillRequired
timeLongTimestampRequired
  • Parameters
ParameterTypeDescriptionRequired
commandStringgetTradebillinfoRequired
clearing_idStringClearing report IDOptional
start_timeStringTransaction start timeOptional
end_timeStringTransaction end timeOptional
nonce_stringStringRandom string, no longer than 32 charactersRequired

Signature example:

Sorted parameters concatenated into a URL-style query string

"clearing_id=M20240302001503350733&command=getTradebillinfo&method=v3.GetTradebill&nonce_string=tw5be5b7sry5prm96s&time=1708422208&user=036870"

Sign stringA using secret_key

The resulting signature is:

"YOUR_SIGNATURE"

Request example - clearing report:

{
    "user": "036870",
    "sign": "YOUR_SIGNATURE",
    "method": "v3.GetTradebill",
    "time": 1708422208,
    "data": {
        "command": "getTradebillInfo",
        "clearing_id": "M20240220001503109569",
        "nonce_string": "tw5be5b7sry5prm96s"
       
    }
}

Request example - date range:

{
    "user": "036870",
    "sign": "YOUR_SIGNATURE",
    "method": "v3.GetTradebill",
    "time": 1708422208,
    "data": {
        "command": "getTradebillInfo",
        "start_time": "1716393600",
        "end_time" : "1716566340",
        "nonce_string": "g46a5g156rt4784ghb1b"
       
    }
}

Response example:

{
	"status": true,
    "code": 200,
    "message": "",
    "data": {
        "tradebill": [
            {
                "time_zone": "GMT+1",
				"store_name": "Test Store",
                "date": "21-02-2024 19:03:21",
				"settlement_currency": "EUR",
                "amount": "2.00",
                "fee": "0.02",
                "net_value": "1.98",
				"vat": "0.01",
                "type": "payment",
                "sub_pay_method": "WeChat Pay",
                "order_id": "YOUR_ORDER_ID",
                "trade_id": "ed71a5db-8e1c-a883-d062-ccbb4005b914",
                "description": "test order",
                "demo": "",
                "state": "paid",
                "fund_flow_status": "2",
                "fund_flow_description": "settled"},
            {
                "time_zone": "GMT+1",
				"store_name": "Test Store"
                "date": "21-02-2024 20:25:43",
				"settlement_currency": "EUR",
                "amount": "2.00",
                "fee": "0.02",
                "net_value": "1.98",
				"vat": "0.01",
                "type": "Payment",
                "sub_pay_method": "WeChat Pay",
                "order_id": "YOUR_ORDER_ID",
                "trade_id": "ed71a5db-8e1c-a883-d062-ccbb4005b914",
                "description": "test order",
                "demo": "",
                "state": "paid",
                "fund_flow_status": "2",
                "fund_flow_description": "settled"}
        ],
        "count": 2
    }
}

Additional information:

Response parameter descriptions:
ParameterTypeDescription
time_zoneStringClearing time zone, usually the time zone of the merchant's country of registration
store_nameStringMerchant store name
dateStringTransaction completion date
settlement_currencyStringSettlement currency, ISO 4217
amountStringSettlement amount
feeStringTransaction fees
net_valueStringNet value before VAT deduction
vatStringVAT on fees
typeStringTransaction type: Payment or Refund
sub_pay_methodStringPayment method
order_idStringMerchant transaction ID
trade_idStringYabandpay transaction ID
descriptionStringTransaction description
demoStringMerchant-defined field
stateStringTransaction status: Paid or Refunded
fund_flow_statusStringFunds status code
fund_flow_descriptionStringFunds status description
countStringNumber of records returned
Funds status codes and descriptions:
fund_flow_statusfund_flow_description
0uncleared
1cleared
2settled