v1
latestOpenAPI 3.0.12026-07-144840447.2 KBList customer invoices
List customer invoices and credit notes
ℹ️ This endpoint requires the following scope: customer_invoices:readonly
Path parameters
Existing company identifier (id)
Query parameters
Cursor for pagination. Use this to fetch the next set of results. The cursor is an opaque string returned in the previous response's metadata. Leave empty for the first request.
Number of items to return per request. Defaults to 20 if not specified. Must be between 1 and 100.
You can choose to filter items on specific fields.
Available fields and values:
- id, date, customer_id, billing_subscription_id, quote_id: lt, lteq, gt, gteq, eq, not_eq, in, not_in
- invoice_number: eq, not_eq, in, not_in
- draft: eq (boolean)
- credit_note: eq (boolean)
- external_reference: eq
- category_id: in
You can choose to sort items on specific attributes Sort field may be prefixed with - for descending order. Example : id will sort by ascending order, -id will sort by descending order. Available fields : id, date
Response
A list of Customer Invoices and/or credit notes
Example response
{
"has_more": true,
"next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2",
"items": [
{
"id": 42,
"label": "Invoice label",
"invoice_number": "F20230001",
"amount": "230.32",
"currency_amount": "230.32",
"currency_amount_before_tax": "196.32",
"exchange_rate": "1.0",
"date": "2023-08-30",
"deadline": "2020-09-02",
"currency_tax": "34.0",
"tax": "34.0",
"discount": {
"value": "25"
},
"ledger_entry": {
"id": 42
},
"public_file_url": "https://app.pennylane.com/public/invoice/pdf?encrypted_id=bzjoVJe...3D%3D",
"filename": "my_file.pdf",
"remaining_amount_with_tax": "20.0",
"remaining_amount_without_tax": "16.0",
"special_mention": "Additional details",
"customer": {
"id": 42
},
"pdf_invoice_free_text": "Thanks for paying this invoice",
"pdf_invoice_subject": "Invoice subject",
"pdf_description": "Invoice description",
"credited_invoice": {
"id": 40
},
"transaction_reference": {
"banking_provider": "bank",
"provider_field_name": "label",
"provider_field_value": "invoice_number"
},
"quote": {
"id": 42
},
"external_reference": "FR123",
"archived_at": "2023-08-30T10:08:08.146343Z",
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z"
}
]
}