Apps API · Billing Capabilities
Billing Capabilities: 1 个接口
GET /api/v1/billing/capabilities
Get billing capability bits
权限(scope): billing:subscription:read · 调用方式: appToken · operationId: get-billing-capabilities
Required app scope: billing:subscription:read.
Returns this deployment's billing capability bits so clients render one purchase surface driven by configuration instead of branching on an edition/region string. Every bit is named for the DIVERGENCE, so false always means 'behave the way the international edition behaves' — but a client must never MANUFACTURE all-false bits out of a failed request. All fifteen bits are required and never omitted: a missing key means this deployment predates that bit (its behaviour is therefore the international one), and a client that expected the bit should treat the gap as version skew rather than silently accept it. This publishes policy, not enforcement: the money-relevant bits (auto_renew, plan_change, credit_pack, card_payment) are also enforced server-side, and terms_acceptance_required has no server gate at all. Derived from this deployment's own edition setting (unset means international; a deployment configured with an edition it does not recognize refuses to start, so these bits are never served for an unknown edition) — like /billing/payment-options and unlike the rest of /billing/*, it stays available even when billing is unavailable on this deployment. The value is fixed for the process lifetime, so unlike /billing/payment-options (whose answer can change at any time) a client may cache it for the session. Response wrapped in standard envelope.
回包
200OK —application/json·DataResponseBillingCapabilitiesDataBodydefaultError —application/problem+json·D8Error
