Cancel Payment

/cgi/payment/api/v1/payment-order/cancel

When the payment order Created but not paid yet, merchant can use the payment ID or merchant orderNo cancel it.

Request

Request payload

POST /payment/api/v1/payment-order/cancel 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
    
    // the body data structure
    // { 
    //     "paymentId": "string"
    // }
}

Please follow the Request Payload to construct the request payload.

  • Set the method parameter to bieases.trade.cancel.
  • Set to body parameter to Body object.

Body object

The parameters of body object in the Request Payload .

KeyTypeMandatory?LengthDescriptionExample
paymentIdStringYes32The payment order number regarding the payment request01J143NWJFNGBV2YB9ZRB9T7PS

Response

Response payload

200 OK
Content-Type: "application/json"

{
    "code": "string",
    "msg": "string",
    "data": 
    {
       "paymentId":"string",
       "referOrderNo":"string",
       "status":"string",
    }
}

The request will be returned with HTTP status code 200 if success and details included in the Data object of the response payload.

  • Data object defined as below

📘

Note

The response is returned synchronous and does not require signature verification and decryption.

Data object

KeyTypeDescriptionExample
paymentIdStringThe payment order number regarding the payment request01J143NWJFNGBV2YB9ZRB9T7PS
referOrderNoStringThe order number on the Merchant's platform2013112111001004500000675971
statusStringThe order cancel operation status.