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
Order details including merchant, buyer, and goods information. See Order.For Mini Program and in-app payment flows,
order.env is required and must include:terminalType:APPosType:IOSorANDROID
Service expiry date. Format:
yyyy-MM-ddNext scheduled payment date. Format:
yyyy-MM-ddJSON-formatted extension data.Max length: 2048 characters
Response 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 returned when the payment requires an H5 cashier step (e.g. direct pay and auth-capture flows with
MOBILE_H5 channel source).