The object definitions which have been used in API endpoints.

API payload definitions

Request payload

POST HTTP/1.1
Content-Type: application/json

{
    "merchantId": "string",
    "method": "string",
    "format": "string",
    "charset": "string",
    "encryptType": "string",
    "signType": "string",
    "sign": "string",
    "timestamp": "Number",
    "body": "<encrypted body string>" // the encrypted body string
}

KeyTypeMandatory?LengthDescriptionExample
merchantIdstringYes18The merchant wallet ID which can be found at merchant wallet: Home->Merchant Information->BIEASES IDB131567545069
methodstringYes-The operation method, refer to Supported operation method for more information. bieases.trade.create
formatstringNo-Supported value:

- json (default)
json
charsetstringNo-the encoding charset for the request body
Supported value:

- utf-8 (default)
utf-8
encryptType stringNo-Message encryption type, supported value:

- AES (default)
AES
signType stringNo-The request signature type, supported value:

- RSA (default)
RSA
signstringYes-The request body signature string. Refer to Sign a request and verify the signaturehcsZg0q6sLm4gR...PpIg==
timestampTimestampYes13The timestamp for the request.1706585572074
bodyObjectYes-The encrypted body object string is formatted as 'format' and encrypted with encryptType algorism.K2AyShlt1...4Q7uWjcvzrvR

Supported request method

Method NameDescription
bieases.trade.createCreate payment order
bieases.trade.queryQuery payment order
bieases.trade.callbackCallback payment order
bieases.trade.cancelCancel payment order
bieases.trade.refundRefund payment order

Response payload

200 OK
Content-Type: "application/json"

{
    "code": "string",
    "msg": "string",
    "data": {}
}

KeyTypeLengthDescriptionExample
codeNumber-The request status code. Please refer to API Status Code for more information.20000
msgString-The response status message Regarding the code.
dataObject-A JSON formatted object. Different requests will have different body definitions please refer to the corresponding API calls.

Webhook callback payload

Callback payload

KeyTypeMandatory?DescriptionExample
idGUIDYesThe callback id for specific event. Each callback has a unique id."{432de57b-5ccf-4c66-8656-1f4c22e9ac56}"
merchantIdstringYesThe merchant wallet ID which can be found at merchant wallet: Home->Merchant Information->BIEASES IDB131567545069
eventNamestringYesRefer to Webhook Event Names for more information payment.order.success
formatstringNoSupported value:

- json (default)
json
charsetstringNothe encoding charset for the request body
Supported value:

- utf-8 (default)
utf-8
encryptType stringNoMessage encryption type, supported value:

- AES (default)
AES
signType stringNoThe request signature type, supported value:

- RSA (default)
RSA
signstringYesThe request body signature string. Refer to Sign a request and verify the signaturehcsZg0q6sLm4gR...PpIg==
timestampTimestampYesThe timestamp for the request.1706585572074
bodystringYesThe encrypted payment result object string.
Refer to Payment result object
K2AyShlt1...4Q7uWjcvzrvR

Payment order status

Order status created via Create Payment

StatusDescriptionNote
pendingThe payment order has been created successfully and waiting for the consumer to pay it.This result will return synchronous or queried by the query API .
timeoutThe payment order created but hasn't been paid withing given period.This result will return asynchronous by webhook callback or queried by the query API.
confirmingThe consumer has submitted the payment request but under system processing.This result will return asynchronous by webhook callback or queried by the query API .
failedThe payment of the payment order failed due to some reasons.This result will return asynchronous by webhook callback or queried by the query API .
successThe payment order paid successfully.This result will return asynchronous by webhook callback or queried by the query API .

Order status created via Cancel Payment

StatusDescriptionNote
canceledThe payment order has been canceled by the cancel API call.This result will return synchronous or queried by the query API .
cancel_failedThe payment order cancel failed.This result will return synchronous.

Order status created via Refund Payment

StatusDescriptionNote
refundingThe refund request has been submitted and under system processing.This result will return synchronous or queried by the query API .
refund_successThe refund request completed successfully.This result will return asynchronous by webhook callback or queried by the query API .
refund_failedThe refund request failed.This result will return asynchronous by webhook callback or queried by the query API .