Skip to main content
POST /v1/payments/createQrOrder Creates a QR code order for the Merchant Presented Dynamic QR (C Scan B) payment scenario. The API performs two steps: it creates the order and, if that succeeds, generates a QR code. The merchant receives the QR code to display, and Rebell maintains the relationship between the QR code and the order.

Request Parameters

string
required
Business type of the QR code. For Merchant Presented Dynamic QR: ORDER_CODEMax length: 16 characters
string
required
Fixed product code provided by Rebell:
  • C Scan B Dynamic: 51051000101000100048
  • Payment from a merchant PC website: a different fixed code, e.g. 51051000101000100053
The exact value is provided during the SIT stage.Max length: 32 characters
string
required
QR code protocol. Only CGCP is supported.Max length: 16 characters
object
required
Merchant order information.
string
Payment result notification URL. When the payment succeeds or the order is closed, Rebell notifies the result to this URL (see notifyPayment). Whether a notification is sent depends on the merchant’s contract.Max length: 1024 characters
string
JSON-formatted extension data. Supported keys:
  • channelSource: MERCHANT_MP, MERCHANT_APP, MOBILE_H5, WEBSIT_H5, INSTORE
  • miniAppId
  • miniAppName
  • miniAppLogo
Example: "{\"channelSource\":\"MERCHANT_MP\",\"miniAppId\":\"12312312312\"}"Max length: 2048 characters

Response Parameters

object
required
Standard result object with resultCode, resultStatus, resultMessage
string
required
Echo of the merchant-provided transaction identifier.
string
Rebell-generated unique ID of the payment order.Max length: 64 characters
string
Generated QR code content to render for the user to scan.Max length: 64 characters

Result Codes

Sample

Request

Response