POST
/api/billing/topup
Credit top-up via Stripe
Creates a Stripe payment intent for credit top-up. Returns a client secret for frontend confirmation.
curl -s -X POST "$BASE/api/billing/topup" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"amount": 10}'请求体
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| amount | number | Y | — | Top-up amount in USD |
| paymentMethodId | string | N | — | Saved payment method ID (optional) |