Create an invoice
POST/checkout
Creates a payment invoice with the provided amount information. Upon successful creation, a unique checkoutId
is returned, which can be used for payment transactions.
Request
Header Parameters
Send client_secret as a Bearer token
- application/json
Body
required
The entityId (client_id) and client_secret will be provided when registering as a merchant.
Array [
]
Merchant ID (client_id)
URI to receive payment response
URL to receive payment response
Payment amount
If true, a dynamic QR code will be generated.
items
Item[]
Optional: For sales analysis of specific products
Possible values: <= 32 characters
Product number
Possible values: <= 200 characters
Product name
Unit price of the product
Quantity of the product
Possible values: <= 50 characters
Brand name of the product
Possible values: <= 10 characters
Measurement unit (e.g., piece, liter, kg)
VAT amount
City tax
Алдааны мэдээлэл
Responses
- 200
Request Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Possible values: [0
, 1
]
Request status
Possible values: [SUCCESS
, UNSUCCESS
, USER_PAYMENT_VERIFICATION_FAILED
, RISK_REJECT
, REGULATION_RESTRICTION
, PROCESS_FAIL
]
Status information
Possible values: <= 48
Checkout ID (created if successful)
Checkout expiration time
(if qrData request was made)
Алдааны мэдээлэл
[
{
"code": 1,
"description": "SUCCESS, PROCESS_FAIL,UNSUCCESS etc.",
"checkoutId": "string",
"expires": "string",
"qrData": "0002010102121531422604960052044600000000001020417810017com.qq.weixin.pay010913",
"message": "invalid or missing entityId parameter"
}
]