/api/v1/projects/:projectId/ordersCreates an order and auto-generates a payment link.
orders:writeParameters
| Name | Type | Required | Description |
|---|---|---|---|
amountMinor | integer | Yes | Amount in minor units (CNY fen). 9900 = ¥99.00 |
currency | string | No | ISO 4217 code. Default CNY. |
description | string | No | Checkout label, max 300 characters. |
buyerEmail | string | No | Customer email for receipts. |
buyerName | string | No | Customer display name. |
metadata | object | No | String key-value pairs (e.g. subscription_id, plan, billing_period) — echoed in webhooks. |
Response
{
"success": true,
"data": {
"order": {
"id": "ord_xxxxxxxx",
"reference": "TP-202603-001",
"amountMinor": 9900,
"currency": "CNY",
"status": "pending",
"paymentLinkUrl": "https://pay.andgroupco.com/pay/pl_test_…"
}
}
}