POST /v1/payments/pay
Initiates a payment. Supports Mini Program cashier flows and agreement-based (recurring) payment scenarios.
Request Parameters
Payment product code assigned by Rebell (e.g.,
51051000000011).Max length: 32 charactersMerchant-generated unique identifier (idempotency key).Max length: 64 characters
Authorization code.Max length: 128 characters
Payment expiry time in ISO 8601 format.
Merchant callback URL for payment result notifications.Max length: 1024 characters
URL to redirect the user to after payment.Max length: 1024 characters
Cashier notification URL.Max length: 1024 characters
Service expiry date. Format:
yyyy-MM-ddNext scheduled payment date. Format:
yyyy-MM-ddJSON-formatted extension data. May include
channelSource, miniAppId, supportMultiConfirm.Max length: 2048 charactersResponse Parameters
Standard result object with
resultCode, resultStatus, resultMessageEcho of the merchant-provided request identifier.
Wallet-generated unique payment ID.Max length: 64 characters
Payment completion time in ISO 8601 format.
Redirect instruction containing
method and redirectionUrl.Result Codes
| resultStatus | resultCode | Description |
|---|---|---|
S | SUCCESS | Payment successful |
A | ACCEPT | Accepted, further action required |
F | PARAM_ILLEGAL | Invalid parameters |
F | PROCESS_FAIL | Processing failed |
F | ACCESS_DENIED | Access denied |
F | USER_NOT_EXIST | User does not exist |
F | CURRENCY_NOT_SUPPORT | Currency not supported |
F | PAYMENT_AMOUNT_EXCEED_LIMIT | Payment amount exceeds limit |
F | USER_AMOUNT_EXCEED_LIMIT | User amount exceeds limit |
F | REPEAT_REQ_INCONSISTENT | Duplicate request with inconsistent data |
F | AUTH_CODE_ALREADY_USED | Auth code already used |
F | PARTNER_STATUS_ABNORMAL | Partner status abnormal |
F | USER_STATUS_ABNORMAL | User status abnormal |
F | PARTNER_NOT_EXIST | Partner does not exist |
F | INVALID_ACCESS_TOKEN | Access token is invalid |
F | RISK_REJECT | Transaction rejected by risk engine |
U | UNKNOWN_EXCEPTION | Unknown error occurred |
U | ORDER_AMOUNT_EXCEED_CONTRACT_LIMIT | Order amount exceeds contract limit |
U | CONTRACT_DEFAULT_PAY_METHOD_INVALID | Default payment method invalid |