Billing credit notes
billing.invoice.v1.CreditNoteService/ListCreditNotes (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
invoice_id?stringA binv_ id
customer_id?stringA cust_ id
A list of CreditNote 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/credit-notes'{ "data": [ { "id": "string", "object": "string" } ], "object": "string", "pagination": { "limit": 0, "page": 0, "total": 0, "total_pages": 0 }}billing.invoice.v1.CreditNoteService/CreateCreditNote (37-invoicing.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
X-Idempotency-Key?stringIdempotency key
A CreditNote 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/credit-notes'{ "id": "string", "object": "string"}billing.invoice.v1.CreditNoteService/PreviewCreditNote (37-invoicing.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
X-Idempotency-Key?stringIdempotency key
A CreditNote 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/credit-notes/preview'{ "id": "string", "object": "string"}billing.invoice.v1.CreditNoteService/GetCreditNote (37-invoicing.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
credit_note_id*stringid
A CreditNote 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/credit-notes/string'{ "id": "string", "object": "string"}billing.invoice.v1.CreditNoteService/GetCreditNotePdf (37-invoicing.md, API Surface; The document). 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, {number}.pdf. A voided credit note's is the VOID rendition (billing-svc docs/questions.md, X158). locale is not read until documents are localized.
BearerAuthAuthorization<token>Access token as "Bearer "
credit_note_id*stringid
locale?stringlocale
The PDF
response?filecurl -X GET 'https://api.us.pontive.com/v1/billing/credit-notes/string/pdf'nullbilling.invoice.v1.CreditNoteService/VoidCreditNote (37-invoicing.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
credit_note_id*stringid
X-Idempotency-Key?stringIdempotency key
A CreditNote 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/credit-notes/string/void'{ "id": "string", "object": "string"}