Skip to content

Public Parameters

Request Parameter Description

ParameterTypeRequiredParameter DescriptionExample
methodString(32)YesInterface Namebasicexpay.trade.cashier
merNoString(32)YesMerchant Code assigned by BasicEx Payment Merchant System, viewable through the Merchant Platform811496833912834
timestampString(14)YesTransaction timestamp, 14 digits in length, format: yyyyMMddHHmmss20230217163650
nonceString(32)YesRandom string composed of digits, uppercase and lowercase letters, up to 32 characters long6Nf5ywUKbVaIuQ06
bizConentString(1024)YesTransaction information, JSON string of transaction request parameters, refer to the respective Method request parameters for detailsSee request parameter example
signTypeString(16)YesSignature Type, fixed value: HmacSHA512HmacSHA512
signString(512)YesSignature value based on the signature type of the request parameters0A91A57735082472D25C9D...

Request Parameter Example

ts
{
  "merNo": "819275770875906",
  "method": "basicexpay.trade.cashier",
  "nonce": "SzaAcrwssP5adNZi",
  "timestamp": "20230331220353",
  "bizConent": "{\"merOrderNo\":\"swR75kHGS2jQYfeN\",\"clientIp\":\"127.0.0.1\",\"totalAmount\":18.37,\"currency\":\"USDT\",\"description\":\"Master, why do you speak of little money, you should go and get it for the Lord\",\"orderSource\":\"APP\",\"tradeStartTime\":\"2023-03-31 22:03:53\",\"expireTime\":900,\"notifyUrl\":\"https://google.com\",\"returnUrl\":\"https://google.com\",\"attach\":\"\",\"goodsDetails\":[{\"goodsType\":\"01\",\"goodsId\":\"100001\",\"goodsName\":\"Test\",\"quantity\":1,\"price\":18.37}]}",
  "signType": "HmacSHA512",
  "sign": "42FEB0B73D3F79F0C8E056AEF88F5E3FA655D2AEC2AB8D561FB9EDBE85A9A872F49428BD3B327A8C3629929629D7CFF8B59736911894419A13B8970482F4E10C"
}

Response Parameter Description

ParameterTypeRequiredParameter DescriptionExample
codestring(10)YesResponse Code0000
messagestring(3)YesResponse DescriptionTransaction Successful
methodstring(32)YesInterface Namebasicexpay.trade.cashier
noncestring(32)YesRandom string composed of digits, uppercase and lowercase letters, up to 32 characters long6Nf5ywUKbVaIuQ06
timestampstring(14)YesTransaction timestamp, 14 digits in length, format: yyyyMMddHHmmss20230217163650
datastring(1024)NoTransaction response information, JSON string of transaction response parameters, only appears when code=0000See response parameter example
signTypestring(16)YesSignature Type, fixed value: HmacSHA512HmacSHA512
signstring(512)YesSignature value based on the signature type of the request parameters0A91A57735082472D25C9D...

Response Parameter Example

ts
{
    "code": "0000",
    "message": "Transaction Successful",
    "method": "basicexpay.trade.cashier",
    "signType": "HmacSHA512",
    "sign": "0A91A57735082472D25C9D40255CA572D211AEDAC2FB2982546FE539CB90AA65F8EE2476CA42F7FD6B65BD9A92B345E3ECD1B367519041FB6DA80F9630D5291A",
    "data": {"orderNo":"729352943001"...},
    "nonce":"6Nf5ywUKbVaIuQ06",
    "timestamp": "20230217163650"
}

Asynchronous Notification Parameter Description

In trading, refund, agent payment, and other scenarios, as long as the asynchronous notification address field notifyUrl is provided, an asynchronous notification will be sent after a successful transaction. The message result of the notification is the same as the "Response Parameter Description", and the data field in the notification message is the same as the "Transaction Result Query" response parameter description data.

After receiving the asynchronous notification, the merchant should directly return the string success to indicate successful receipt. If the system does not receive success, it will retry the notification according to a certain strategy. The merchant should handle idempotent processing on their side.

Due to the unreliability of synchronous returns, it is essential to rely on asynchronous notifications or query interfaces for payment results.