POST
/api/billing/payment-methods
Add payment method
Adds a new payment method (card or Alipay) to the user's account.
curl -s -X POST "$BASE/api/billing/payment-methods" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"type": "card", "paymentMethodId": "pm_xxx"}'请求体
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| type | string (card | alipay) | Y | — | Payment method type |
| paymentMethodId | string | N | — | Stripe PaymentMethod ID (for card) |