POST /v1/payments/pay
Initiates a payment. Supports Mini Program cashier flows and agreement-based (recurring) payment scenarios.
Request Parameters
string
required
Payment product code assigned by Rebell (e.g.,
51051000000011).Max length: 32 charactersstring
required
Merchant-generated unique identifier (idempotency key).Max length: 64 characters
string
Authorization code.Max length: 128 characters
string
Payment expiry time in ISO 8601 format.
string
Merchant callback URL for payment result notifications.Max length: 1024 characters
string
URL to redirect the user to after payment.Max length: 1024 characters
string
Cashier notification URL.Max length: 1024 characters
object
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
string
Service expiry date. Format:
yyyy-MM-ddstring
Next scheduled payment date. Format:
yyyy-MM-ddstring
JSON-formatted extension data.Max length: 2048 characters
Response Parameters
object
required
Standard result object with
resultCode, resultStatus, resultMessagestring
Echo of the merchant-provided request identifier.
string
Wallet-generated unique payment ID.Max length: 64 characters
string
Payment completion time in ISO 8601 format.
object
Redirect instruction returned when the payment requires an H5 cashier step (e.g. direct pay and auth-capture flows with
MOBILE_H5 channel source).