Skip to Content
Docs
API referenceManagement API

Billing credit notes

GET
/billing/credit-notes

billing.invoice.v1.CreditNoteService/ListCreditNotes (37-invoicing.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

invoice_id?string

A binv_ id

customer_id?string

A cust_ id

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://api.us.pontive.com/v1/billing/credit-notes'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
POST
/billing/credit-notes

billing.invoice.v1.CreditNoteService/CreateCreditNote (37-invoicing.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A CreditNote 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/credit-notes'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/credit-notes/preview

billing.invoice.v1.CreditNoteService/PreviewCreditNote (37-invoicing.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A CreditNote 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/credit-notes/preview'
Example Response
{  "id": "string",  "object": "string"}
GET
/billing/credit-notes/{credit_note_id}

billing.invoice.v1.CreditNoteService/GetCreditNote (37-invoicing.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

credit_note_id*string

id

Response Body

A CreditNote 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/credit-notes/string'
Example Response
{  "id": "string",  "object": "string"}
GET
/billing/credit-notes/{credit_note_id}/pdf

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.

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

credit_note_id*string

id

Query Parameters

locale?string

locale

Response Body

The PDF

response?file
Example Request
curl -X GET 'https://api.us.pontive.com/v1/billing/credit-notes/string/pdf'
Example Response
null
POST
/billing/credit-notes/{credit_note_id}/void

billing.invoice.v1.CreditNoteService/VoidCreditNote (37-invoicing.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

credit_note_id*string

id

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A CreditNote 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/credit-notes/string/void'
Example Response
{  "id": "string",  "object": "string"}