Skip to Content
Docs
API referenceManagement API

Billing customers

GET
/billing/customers

billing.customer.v1.CustomerService/ListCustomers (32-billing-overview.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

page?integer

Page number, from 1

limit?integer

Items per page, 1 to 100, default 25

subject_type?string

subject_type

subject_id?string

subject_id

ingest_alias?string

ingest_alias

status?string

status

email?string

email

invoicing_status?string

invoicing_status

time_machine_id?string

time_machine_id

Response Body

A list of Customer objects with pagination

application/json
  1. response
data?array<>
object?string
pagination?

Pagination is the page answered (api-route-review D9).

Example Request
curl -X GET 'https://api.us.pontive.com/v1/billing/customers'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
POST
/billing/customers

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).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Customer 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 POST 'https://api.us.pontive.com/v1/billing/customers'
Example Response
{  "id": "string",  "object": "string"}
GET
/billing/customers/{customer_id}

billing.customer.v1.CustomerService/GetCustomer (32-billing-overview.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

customer_id*string

id

Response Body

A Customer 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/customers/string'
Example Response
{  "id": "string",  "object": "string"}
PATCH
/billing/customers/{customer_id}

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).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

customer_id*string

id

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Customer 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/customers/string'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/customers/{customer_id}/anonymize

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.

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

customer_id*string

id

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Customer 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 POST 'https://api.us.pontive.com/v1/billing/customers/string/anonymize'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/customers/{customer_id}/archive

billing.customer.v1.CustomerService/ArchiveCustomer (32-billing-overview.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

customer_id*string

id

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Customer 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 POST 'https://api.us.pontive.com/v1/billing/customers/string/archive'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/customers/{customer_id}/change-subject

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.

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

customer_id*string

id

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Customer 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 POST 'https://api.us.pontive.com/v1/billing/customers/string/change-subject'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/customers/{customer_id}/unarchive

billing.customer.v1.CustomerService/UnarchiveCustomer (32-billing-overview.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

customer_id*string

id

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Customer 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 POST 'https://api.us.pontive.com/v1/billing/customers/string/unarchive'
Example Response
{  "id": "string",  "object": "string"}