Billing settings
billing.customer.v1.BillingSettingsService/GetBillingSettings (32-billing-overview.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
A BillingSettings object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X GET 'https://api.us.pontive.com/v1/billing/settings'{ "id": "string", "object": "string"}billing.customer.v1.BillingSettingsService/UpdateBillingSettings (32-billing-overview.md, API Surface; 38-payments-and-tax.md, Tax settings). A field left out keeps its value. limits is read-only here: a body that sets it is refused as a field the request does not take (PATCH /v1/billing/settings/limits sets it). tax.mode, tax.missing_location and tax.validate_tax_ids are replaced together. tax.manual_rates replaces the whole list: a rate with an id keeps that rate, one without mints a new one, null or [] clears the list, more than 200 is field_too_long; left out, the rates stay as they are.
BearerAuthAuthorization<token>Access token as "Bearer "
X-Idempotency-Key?stringIdempotency key
If-Match?stringThe ETag the document was read with, checked by billing-svc in the update: a stale one is refused 412 precondition_failed (D42)
A BillingSettings object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X PATCH 'https://api.us.pontive.com/v1/billing/settings'{ "id": "string", "object": "string"}billing.customer.v1.BillingSettingsService/UpdateBillingLimits (32-billing-overview.md, API Surface, Billing settings; Billing settings, limits; billing-svc docs/questions.md, P99). Pontive's own route: needs instance:manage (production_instance:manage for a production instance), as the capability does, so a client's billing keys cannot change the instance's limits. Body { event_types?, meters? }, each a whole number from 0 to 10,000; only the fields given change, and null is refused. Refused while billing is off. A limit lowered below the current count refuses nothing that exists. Answers the billing settings.
BearerAuthAuthorization<token>Access token as "Bearer "
X-Idempotency-Key?stringIdempotency key
A billing_settings object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X PATCH 'https://api.us.pontive.com/v1/billing/settings/limits'{ "id": "string", "object": "string"}