Skip to Content
Docs
API referenceManagement API

Billing settings

GET /v1/billing/settings

GET
/billing/settings

billing.customer.v1.BillingSettingsService/GetBillingSettings (32-billing-overview.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Response Body

A BillingSettings object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X GET 'https://api.us.pontive.com/v1/billing/settings'
Example Response
{  "id": "string",  "object": "string"}
PATCH
/billing/settings

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.

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Header Parameters

X-Idempotency-Key?string

Idempotency key

If-Match?string

The ETag the document was read with, checked by billing-svc in the update: a stale one is refused 412 precondition_failed (D42)

Response Body

A BillingSettings object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/billing/settings'
Example Response
{  "id": "string",  "object": "string"}
PATCH
/billing/settings/limits

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.

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A billing_settings object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/billing/settings/limits'
Example Response
{  "id": "string",  "object": "string"}