Version 2.1.1792967583 · latest Download OpenAPI Markdown

Online payments

Start an online recharge: creates an unpaid order, pre-orders it at the payment gateway and returns the payment URL.

paymentsBillingAuthentication: User1 endpoints

Create online payment

POST/api/v2/payments/{provider}/orders
Authentication: User

Request body application/json

FieldTypeRequiredDescription
amount_centsintegerRequired Recharge amount in cents.

Online payments object

FieldTypeRequiredDescription
amount_centsintegerRequired Recharge amount in cents.
gatewaystring— The payment gateway the order was placed with.
Values ["alipay","wxpay","codepay","epay"]
mch_order_nostring— Merchant order number (the gateway-side order number).
order_idinteger— ID of the unpaid order.
pay_urlstring— Payment address: a redirect URL, or a QR code string for weixin:// and Alipay face-to-face payment.