Billing customers
billing.customer.v1.CustomerService/ListCustomers (32-billing-overview.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
page?integerPage number, from 1
limit?integerItems per page, 1 to 100, default 25
subject_type?stringsubject_type
subject_id?stringsubject_id
ingest_alias?stringingest_alias
status?stringstatus
email?stringinvoicing_status?stringinvoicing_status
time_machine_id?stringtime_machine_id
A list of Customer objects with pagination
application/json- response
data?array<>object?stringpagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/billing/customers'{ "data": [ { "id": "string", "object": "string" } ], "object": "string", "pagination": { "limit": 0, "page": 0, "total": 0, "total_pages": 0 }}billing.customer.v1.CustomerService/CreateCustomer (32-billing-overview.md, API Surface; Customer). tax_status is auto, taxable, exempt or reverse_charge; left out, it is auto: billing decides reverse charge, and taxable forces tax (billing-svc docs/questions.md, P104, P105).
BearerAuthAuthorization<token>Access token as "Bearer "
X-Idempotency-Key?stringIdempotency key
A Customer object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X POST 'https://api.us.pontive.com/v1/billing/customers'{ "id": "string", "object": "string"}billing.customer.v1.CustomerService/GetCustomer (32-billing-overview.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
customer_id*stringid
A Customer 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/customers/string'{ "id": "string", "object": "string"}billing.customer.v1.CustomerService/UpdateCustomer (32-billing-overview.md, API Surface; Customer). tax_status is auto, taxable, exempt or reverse_charge (billing-svc docs/questions.md, P105).
BearerAuthAuthorization<token>Access token as "Bearer "
customer_id*stringid
X-Idempotency-Key?stringIdempotency key
A Customer 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/customers/string'{ "id": "string", "object": "string"}billing.customer.v1.CustomerService/AnonymizeCustomer (32-billing-overview.md, Customers, Anonymizing). Removes a settled Customer's personal data for a GDPR erasure: its name becomes the given one (default "Deleted customer"); its email, billing address, tax ids, locale, ingest aliases and metadata are cleared; its payment methods are detached on the provider; it is archived and its anonymized_at set. Its id, subject and history stay, and its issued invoices keep their documents, the tax record. Refused with customer_in_use while a contract has not ended or an invoice is a draft, held or open. Idempotent and irreversible: later writes are customer_anonymized.
BearerAuthAuthorization<token>Access token as "Bearer "
customer_id*stringid
X-Idempotency-Key?stringIdempotency key
A Customer object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X POST 'https://api.us.pontive.com/v1/billing/customers/string/anonymize'{ "id": "string", "object": "string"}billing.customer.v1.CustomerService/ArchiveCustomer (32-billing-overview.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
customer_id*stringid
X-Idempotency-Key?stringIdempotency key
A Customer object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X POST 'https://api.us.pontive.com/v1/billing/customers/string/archive'{ "id": "string", "object": "string"}billing.customer.v1.CustomerService/ChangeCustomerSubject (32-billing-overview.md, Changing the subject). Re-points the Customer from user to organization, or from external to user or organization; the new subject must have no Customer of its own.
BearerAuthAuthorization<token>Access token as "Bearer "
customer_id*stringid
X-Idempotency-Key?stringIdempotency key
A Customer object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X POST 'https://api.us.pontive.com/v1/billing/customers/string/change-subject'{ "id": "string", "object": "string"}billing.customer.v1.CustomerService/UnarchiveCustomer (32-billing-overview.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
customer_id*stringid
X-Idempotency-Key?stringIdempotency key
A Customer object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X POST 'https://api.us.pontive.com/v1/billing/customers/string/unarchive'{ "id": "string", "object": "string"}