Skip to content

3、Repayment Notify

3.1、Repayment Notify interface

Type:POST

Content-Type:application/json

Description: This API is used to notify the payment result, including parameters such as merchant information, order status, and user information.

Body-parameters:

ParameterTypeDescription
amountBigDecimalThe total payment amount (unit: cents, minimum value 1000)
payOrderIdstringThe application order ID
codeIntegerThe payment status code (e.g., success).
mchOrderNostringThe unique merchant order number.
subjectstringProduct name
signstringThe signature for validation.
reqTimestringThe timestamp of the request.
createdAtstringThe timestamp when the order was created.
stateIntegerThe payment state (Payment Status:0 - Order Generated 1 - Payment in Progress 2 - Payment Successful 3 - Payment Failed 4 - Cancelled 5 - Refunded 6 - Order Closed).

Request-example:

js
{
    "amount": 210800,
    "payOrderId": "P1889977259465543682",
    "code": "success",
    "mchOrderNo": "R1655T1737554677110",
    "subject": "",
    "sign": "F83542B538F7DB47EE53D0D2C6B866F4",
    "reqTime": 1739441025205,
    "createdAt": 1739440681615,
    "state": 2
}

3.2、Successfully received the response.

Description: Successfully accepted, please return SUCCESS.

•sign:

•type: String

•describe: A signature of the data used to verify the authenticity and integrity of the response. The receiver needs to perform signature verification on the returned data based on the same signature algorithm.