Object Definitions

The object definitions that 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]"
}
KeyTypeMandatory?LengthDescriptionExample
merchantIdstringYes18The merchant wallet ID which can be found in the 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
encryptTypestringNo-Message encryption type, supported value:
AES (default)
AES
signTypestringNo-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 formatted as 'format' and encrypted with encryptType algorithm.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 a specific event. Each callback has a unique ID."432de57b-5ccf-4c66-8656-1f4c22e9ac56"
merchantIdstringYesThe merchant wallet ID which can be found in the merchant wallet: Home->Merchant Information->BIEASES IDB131567545069
eventNamestringYesRefer to Webhook Event Names for more informationpayment.order.success
formatstringNoSupported value:
json (default)
json
charsetstringNoThe encoding charset for the request body
Supported value:
utf-8 (default)
utf-8
encryptTypestringNoMessage encryption type, supported value:
AES (default)
AES
signTypestringNoThe 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 is waiting for the consumer to pay it.This result will be returned synchronously or can be queried by the query API.
timeoutThe payment order was created but hasn't been paid within the given period.This result will be returned asynchronously by webhook callback or can be queried by the query API.
confirmingThe consumer has submitted the payment request but it is under system processing.This result will be returned asynchronously by webhook callback or can be queried by the query API.
failedThe payment of the payment order failed due to some reasons.This result will be returned asynchronously by webhook callback or can be queried by the query API.
successThe payment order was paid successfully.This result will be returned asynchronously by webhook callback or can be 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 be returned synchronously or can be queried by the query API.
cancel_failedThe payment order cancellation failed.This result will be returned synchronously.

Order status created via Refund Payment

StatusDescriptionNote
refundingThe refund request has been submitted and is under system processing.This result will be returned synchronously or can be queried by the query API.
refund_successThe refund request was completed successfully.This result will be returned asynchronously by webhook callback or can be queried by the query API.
refund_failedThe refund request failed.This result will be returned asynchronously by webhook callback or can be queried by the query API.