Billing invoices
billing.invoice.v1.InvoiceService/ListInvoices (37-invoicing.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
page?integerPage number, from 1
limit?integerItems per page, 1 to 100, default 25
customer_id?stringA cust_ id
contract_id?stringA ctr_ id
status?stringstatus
kind?stringkind
from?stringRFC 3339 time
to?stringRFC 3339 time
number?stringnumber
A list of Invoice 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/invoices'{ "data": [ { "id": "string", "object": "string" } ], "object": "string", "pagination": { "limit": 0, "page": 0, "total": 0, "total_pages": 0 }}billing.invoice.v1.InvoiceService/CreateInvoice (37-invoicing.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
X-Idempotency-Key?stringIdempotency key
A Invoice 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/invoices'{ "id": "string", "object": "string"}billing.invoice.v1.InvoiceService/GetUpcomingInvoice (37-invoicing.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
contract_id?stringA ctr_ id
A Invoice 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/invoices/upcoming'{ "id": "string", "object": "string"}billing.invoice.v1.InvoiceService/GetInvoice (37-invoicing.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
invoice_id*stringid_or_number
A Invoice 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/invoices/string'{ "id": "string", "object": "string"}billing.invoice.v1.InvoiceService/UpdateInvoice (37-invoicing.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
invoice_id*stringid
X-Idempotency-Key?stringIdempotency key
A Invoice 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/invoices/string'{ "id": "string", "object": "string"}billing.invoice.v1.InvoiceService/FinalizeInvoice (37-invoicing.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
invoice_id*stringid
X-Idempotency-Key?stringIdempotency key
A Invoice 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/invoices/string/finalize'{ "id": "string", "object": "string"}billing.invoice.v1.InvoiceService/ListInvoiceLines (37-invoicing.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
invoice_id*stringid
page?integerPage number, from 1
limit?integerItems per page, 1 to 100, default 25
product_id?stringA product id
A list of Line 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/invoices/string/lines'{ "data": [ { "id": "string", "object": "string" } ], "object": "string", "pagination": { "limit": 0, "page": 0, "total": 0, "total_pages": 0 }}billing.invoice.v1.InvoiceService/MarkInvoiceUncollectible (37-invoicing.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
invoice_id*stringid
X-Idempotency-Key?stringIdempotency key
A Invoice 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/invoices/string/mark-uncollectible'{ "id": "string", "object": "string"}billing.invoice.v1.InvoiceService/PayInvoice (37-invoicing.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
invoice_id*stringid
X-Idempotency-Key?stringIdempotency key
A Invoice 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/invoices/string/pay'{ "id": "string", "object": "string"}billing.invoice.v1.InvoiceService/GetInvoicePdf (37-invoicing.md, API Surface; The document). 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, {number}.pdf. A voided invoice's is the VOID rendition (billing-svc docs/questions.md, X158); a draft has none (not_found). locale is not read until documents are localized.
BearerAuthAuthorization<token>Access token as "Bearer "
invoice_id*stringid
locale?stringlocale
The PDF
response?filecurl -X GET 'https://api.us.pontive.com/v1/billing/invoices/string/pdf'nullbilling.invoice.v1.InvoiceService/RecomputeInvoice (37-invoicing.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
invoice_id*stringid
X-Idempotency-Key?stringIdempotency key
A Invoice 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/invoices/string/recompute'{ "id": "string", "object": "string"}billing.invoice.v1.InvoiceService/SendInvoice (37-invoicing.md, API Surface; Emails). Sends the invoice issued email again, with its PDF, to the Customer's email as it is now, whatever the emails toggles say. A draft, held or void invoice is invoice_not_open (billing-svc docs/questions.md, X163). X-Idempotency-Key is passed through. The body takes no field.
BearerAuthAuthorization<token>Access token as "Bearer "
invoice_id*stringid
X-Idempotency-Key?stringIdempotency key
The Invoice object
application/json- response
curl -X POST 'https://api.us.pontive.com/v1/billing/invoices/string/send'{}billing.invoice.v1.InvoiceService/GetInvoiceUsageCsv (37-invoicing.md, API Surface; The document). One row per rated usage line (billing-svc docs/questions.md, X157), as a download, not an envelope: Content-Type text/csv; charset=utf-8 and Content-Disposition attachment with the file name billing-svc gives, {number}-usage-detail.csv.
BearerAuthAuthorization<token>Access token as "Bearer "
invoice_id*stringid
The CSV
response?filecurl -X GET 'https://api.us.pontive.com/v1/billing/invoices/string/usage-detail'nullbilling.invoice.v1.InvoiceService/VoidInvoice (37-invoicing.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
invoice_id*stringid
X-Idempotency-Key?stringIdempotency key
A Invoice 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/invoices/string/void'{ "id": "string", "object": "string"}