Skip to Content
Docs
API referenceManagement API

Billing for the end customer

GET
/me/billing/balances

billing.ledger.v1.MeLedgerService/ListMyBalances (36-credits-ledger.md, API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

page?integer

Page number, from 1

limit?integer

Items per page, 1 to 100, default 25

unit?string

unit

Response Body

A list of Balance 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://example.auth.us.pontive.app/v1/me/billing/balances'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
POST
/me/billing/checkout-sessions

billing.contract.v1.MeContractService/CreateMyCheckoutSession (35-contracts.md, End-customer portal and API Surface). The body is { subject?, packages, success_url, cancel_url }. billing-svc checks both URLs against the browser's Origin, which the gateway passes in the request context, and refuses a request without one (35-contracts.md, Checkout; billing-svc docs/questions.md, P71). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A MyCheckoutSession object, object checkout_session

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://example.auth.us.pontive.app/v1/me/billing/checkout-sessions'
Example Response
{  "id": "string",  "object": "string"}
GET
/me/billing/checkout-sessions/{checkout_session_id}

billing.contract.v1.MeContractService/GetMyCheckoutSession (35-contracts.md, End-customer portal and API Surface). Under pontive:billing:pay, the scope the checkout element holds (41-embedded-organization-management.md, section 5.1). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

checkout_session_id*string

id

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Response Body

A MyCheckoutSession object, object checkout_session

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://example.auth.us.pontive.app/v1/me/billing/checkout-sessions/string'
Example Response
{  "id": "string",  "object": "string"}
POST
/me/billing/checkout-sessions/{checkout_session_id}/confirm

billing.contract.v1.MeContractService/ConfirmMyCheckoutSession (35-contracts.md, End-customer portal and API Surface). The body is { package, billing_frequency, billing_address?, tax_id?, promotion_code? }, package a pkg_ id or the package's key (api-route-review D55). The answer carries a client secret: no log or span holds the response body (billing-svc docs/m17-design.md, R8). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

checkout_session_id*string

id

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

The ConfirmMyCheckoutSessionResponse fields: outcome, contract_id, invoice_id, payment_id, client_secret, intent_type, decline_message and keys

application/json
  1. response
Example Request
curl -X POST 'https://example.auth.us.pontive.app/v1/me/billing/checkout-sessions/string/confirm'
Example Response
{}
POST
/me/billing/checkout-sessions/{checkout_session_id}/preview

billing.contract.v1.MeContractService/PreviewMyCheckoutSession (35-contracts.md, End-customer portal and API Surface). The body is confirm's (P65). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48). The RPC writes nothing and takes no idempotency key, so X-Idempotency-Key is not read.

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

checkout_session_id*string

id

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Response Body

The first Invoice as it would be; nothing is saved

application/json
  1. response
Example Request
curl -X POST 'https://example.auth.us.pontive.app/v1/me/billing/checkout-sessions/string/preview'
Example Response
{}
GET
/me/billing/contracts

billing.contract.v1.MeContractService/ListMyContracts (35-contracts.md, End-customer portal and API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

page?integer

Page number, from 1

limit?integer

Items per page, 1 to 100, default 25

Response Body

A list of MyContract objects, object contract, 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://example.auth.us.pontive.app/v1/me/billing/contracts'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
POST
/me/billing/contracts/{contract_id}/cancel

billing.contract.v1.MeContractService/CancelMyContract (35-contracts.md, End-customer portal and API Surface). The body is { reason? }. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

contract_id*string

id

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A MyContract object, object contract

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://example.auth.us.pontive.app/v1/me/billing/contracts/string/cancel'
Example Response
{  "id": "string",  "object": "string"}
POST
/me/billing/contracts/{contract_id}/change-package

billing.contract.v1.MeContractService/ChangeMyContract (35-contracts.md, End-customer portal and API Surface). The body is the preview's, with its preview_hash; preview_stale when the preview changed. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

contract_id*string

id

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A MyContract object, object contract

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://example.auth.us.pontive.app/v1/me/billing/contracts/string/change-package'
Example Response
{  "id": "string",  "object": "string"}
POST
/me/billing/contracts/{contract_id}/change-package/preview

billing.contract.v1.MeContractService/PreviewMyContractChange (35-contracts.md, End-customer portal and API Surface). The body is { package, billing_frequency? } or { quantity, subscription_id? }. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48). The RPC writes nothing and takes no idempotency key, so X-Idempotency-Key is not read.

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

contract_id*string

id

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Response Body

The PreviewMyContractChangeResponse fields: contract, invoices, upcoming_invoice and preview_hash

application/json
  1. response
Example Request
curl -X POST 'https://example.auth.us.pontive.app/v1/me/billing/contracts/string/change-package/preview'
Example Response
{}
DELETE
/me/billing/contracts/{contract_id}/edits/{edit_id}

billing.contract.v1.MeContractService/DeleteMyContractEdit (35-contracts.md, Package changes and End-customer portal; billing-svc P124). Cancels the contract's pending change, a scheduled downgrade, by deleting its edit: edit_id is the contract's pending_change.edit_id, and any other edit is not_found. Only a change the end customer asked for, pending_change.initiated_by customer, may be cancelled here; one the client made is change_not_allowed. billing.contract.edit_cancelled is written as for DELETE /v1/billing/contracts/{contract_id}/edits/{edit_id}. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

contract_id*string

id

edit_id*string

edit_id: the contract's pending_change.edit_id

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

No Content

Example Request
curl -X DELETE 'https://example.auth.us.pontive.app/v1/me/billing/contracts/string/edits/string'
Example Response
Empty
POST
/me/billing/contracts/{contract_id}/revoke-cancellation

billing.contract.v1.MeContractService/RevokeMyContractCancellation (35-contracts.md, End-customer portal and API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

contract_id*string

id

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A MyContract object, object contract

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://example.auth.us.pontive.app/v1/me/billing/contracts/string/revoke-cancellation'
Example Response
{  "id": "string",  "object": "string"}
GET
/me/billing/credit-notes

billing.invoice.v1.MeInvoiceService/ListMyCreditNotes (37-invoicing.md, API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

page?integer

Page number, from 1

limit?integer

Items per page, 1 to 100, default 25

Response Body

A list of CreditNote 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://example.auth.us.pontive.app/v1/me/billing/credit-notes'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
GET
/me/billing/credit-notes/{credit_note_id}/pdf

billing.invoice.v1.MeInvoiceService/GetMyCreditNotePdf (37-invoicing.md, API Surface). The credit note's PDF as a download, not an envelope: Content-Type application/pdf and Content-Disposition attachment with the file name billing-svc gives. A voided credit note's is the VOID rendition. Another Customer's credit note is credit_note_not_found. Needs a token for the instance's me audience with pontive:billing:read.

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

credit_note_id*string

id

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Response Body

The PDF

response?file
Example Request
curl -X GET 'https://example.auth.us.pontive.app/v1/me/billing/credit-notes/string/pdf'
Example Response
null
PATCH
/me/billing/customer

billing.payment.v1.MePaymentService/SetMyDefaultPaymentMethod (38-payments-and-tax.md, API Surface; api-route-review D38). The caller's Customer, or the subject's it names: default_payment_method_id, one of its payment methods, becomes its default. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

The default PaymentMethod object

application/json
  1. response
Example Request
curl -X PATCH 'https://example.auth.us.pontive.app/v1/me/billing/customer'
Example Response
{}
GET
/me/billing/customers

billing.customer.v1.MeCustomerService/ListMyCustomers (32-billing-overview.md, End-customer surface). The caller's own user Customer, the token's organization's where they hold a billing key, and the suspended or closed organizations they own and may recover (P79, P122), each with what the caller may do there: recovery marks those, and closed marks one its client closed, where only paying and the payment method are open. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

page?integer

Page number

limit?integer

Items per page, 1 to 100

Response Body

A list of MyCustomer objects, object customer, without 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://example.auth.us.pontive.app/v1/me/billing/customers'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
GET
/me/billing/entitlements

billing.entitlement.v1.MeEntitlementService/ListMyEntitlements (39-entitlements-and-controls.md, API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Response Body

An EntitlementSet 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://example.auth.us.pontive.app/v1/me/billing/entitlements'
Example Response
{  "id": "string",  "object": "string"}
GET
/me/billing/invoices

billing.invoice.v1.MeInvoiceService/ListMyInvoices (37-invoicing.md, API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

page?integer

Page number, from 1

limit?integer

Items per page, 1 to 100, default 25

status?string

status

Response Body

A list of Invoice 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://example.auth.us.pontive.app/v1/me/billing/invoices'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
GET
/me/billing/invoices/upcoming

billing.invoice.v1.MeInvoiceService/GetMyUpcomingInvoice (37-invoicing.md, API Surface). The upcoming invoice of the contract in force; invoice_not_found when there is none. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Response Body

An Invoice 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://example.auth.us.pontive.app/v1/me/billing/invoices/upcoming'
Example Response
{  "id": "string",  "object": "string"}
GET
/me/billing/invoices/{invoice_id}

billing.invoice.v1.MeInvoiceService/GetMyInvoice (37-invoicing.md, API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

invoice_id*string

id

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Response Body

An Invoice 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://example.auth.us.pontive.app/v1/me/billing/invoices/string'
Example Response
{  "id": "string",  "object": "string"}
POST
/me/billing/invoices/{invoice_id}/pay

billing.payment.v1.MePaymentService/PayMyInvoice (38-payments-and-tax.md, API Surface). The body is { method }, saved or new. The answer carries a client secret: no log or span holds the response body (billing-svc docs/m17-design.md, R8). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

invoice_id*string

id

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

The PayMyInvoiceResponse fields: outcome, payment_id, client_secret, intent_type, decline_message and keys

application/json
  1. response
Example Request
curl -X POST 'https://example.auth.us.pontive.app/v1/me/billing/invoices/string/pay'
Example Response
{}
GET
/me/billing/invoices/{invoice_id}/pdf

billing.invoice.v1.MeInvoiceService/GetMyInvoicePdf (37-invoicing.md, API Surface). The invoice's PDF as a download, not an envelope: Content-Type application/pdf and Content-Disposition attachment with the file name billing-svc gives. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

invoice_id*string

id

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Response Body

The PDF

response?file
Example Request
curl -X GET 'https://example.auth.us.pontive.app/v1/me/billing/invoices/string/pdf'
Example Response
null
GET
/me/billing/ledger-entries

billing.ledger.v1.MeLedgerService/ListMyLedgerEntries (36-credits-ledger.md, API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

limit?integer

Items per page, 1 to 100, default 25

after?string

Cursor: a next_cursor, to continue forward

before?string

Cursor: a next_cursor, to read the page just before it

type?string

type

from?string

RFC 3339 time

to?string

RFC 3339 time

Response Body

A list of LedgerEntry objects, walked by cursor (api-route-review D41)

application/json
  1. response
data?array<>
next_cursor?string
object?string
Example Request
curl -X GET 'https://example.auth.us.pontive.app/v1/me/billing/ledger-entries'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "next_cursor": "string",  "object": "string"}
POST
/me/billing/payment-method-session

billing.payment.v1.MePaymentService/CreateMyPaymentMethodSession (38-payments-and-tax.md, API Surface). The body is { mode?, return_url? }. The answer carries a client secret: no log or span holds the response body (billing-svc docs/m17-design.md, R8). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A PaymentMethodSession 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://example.auth.us.pontive.app/v1/me/billing/payment-method-session'
Example Response
{  "id": "string",  "object": "string"}
GET
/me/billing/payment-methods

billing.payment.v1.MePaymentService/ListMyPaymentMethods (38-payments-and-tax.md, API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

page?integer

Page number, from 1

limit?integer

Items per page, 1 to 100, default 25

Response Body

A list of PaymentMethod 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://example.auth.us.pontive.app/v1/me/billing/payment-methods'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
DELETE
/me/billing/payment-methods/{payment_method_id}

billing.payment.v1.MePaymentService/RemoveMyPaymentMethod (38-payments-and-tax.md, API Surface). {id} is the spec's {pm}. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:pay (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

payment_method_id*string

id

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

The removed PaymentMethod object, with warnings

application/json
  1. response
Example Request
curl -X DELETE 'https://example.auth.us.pontive.app/v1/me/billing/payment-methods/string'
Example Response
{}
GET
/me/billing/payments

billing.payment.v1.MePaymentService/ListMyPayments (38-payments-and-tax.md, API Surface). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

page?integer

Page number, from 1

limit?integer

Items per page, 1 to 100, default 25

Response Body

A list of Payment 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://example.auth.us.pontive.app/v1/me/billing/payments'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

GET /v1/me/billing/usage

GET
/me/billing/usage

billing.metering.v1.MeUsageService/GetMyUsage (33-metering.md, API Surface). The same parameters as GET /v1/usage, for the caller's Customer. An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

meter?string

A mtr_ id or a meter key; named without _id because it takes either (route review D1)

from?string

RFC 3339 time

to?string

RFC 3339 time

granularity?string

granularity

group_by?string

group_by, repeated or comma separated

Response Body

A UsageSeries 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://example.auth.us.pontive.app/v1/me/billing/usage'
Example Response
{  "id": "string",  "object": "string"}