GET
/
api
/
external
/
v2
/
credit_notes
{
  "has_more": true,
  "items": [
    {
      "amount": "-230.32",
      "archived_at": "2023-08-30T10:08:08.146343Z",
      "categories": {
        "url": "https://app.pennylane.com/api/external/v2/credit_notes/42/categories"
      },
      "created_at": "2023-08-30T10:08:08.146343Z",
      "credited_invoice": {
        "id": 42,
        "url": "https://app.pennylane.com/api/external/v2/customer_invoices/42"
      },
      "currency": "EUR",
      "currency_amount": "-230.32",
      "currency_amount_before_tax": "-196.32",
      "currency_tax": "-34.0",
      "customer": {
        "id": 42,
        "url": "https://app.pennylane.com/api/external/v2/customers/42"
      },
      "customer_invoice_template": {
        "id": -39022088
      },
      "date": "2023-08-30",
      "deadline": "2020-09-02",
      "discount": {
        "type": "absolute",
        "value": "in non"
      },
      "exchange_rate": "1.0",
      "external_reference": "FR123",
      "filename": "my_file.pdf",
      "id": 42,
      "invoice_line_sections": {
        "url": "https://app.pennylane.com/api/external/v2/credit_notes/42/invoice_line_sections"
      },
      "invoice_lines": {
        "url": "https://app.pennylane.com/api/external/v2/credit_notes/42/invoice_lines"
      },
      "invoice_number": "F20230001",
      "label": "Credit note label",
      "language": "fr_FR",
      "ledger_entry": {
        "id": 42002
      },
      "paid": false,
      "pdf_description": "Credit note description",
      "pdf_invoice_free_text": "Thanks for paying this credit note",
      "pdf_invoice_subject": "Credit note subject",
      "public_file_url": "https://app.pennylane.com/public/invoice/pdf?encrypted_id=bzjoVJe...3D%3D",
      "remaining_amount_with_tax": "20.0",
      "remaining_amount_without_tax": "16.0",
      "special_mention": "Additional details",
      "tax": "-34.0",
      "transaction_reference": {
        "banking_provider": "stripe",
        "provider_field_name": "label",
        "provider_field_value": "invoice_number"
      },
      "updated_at": "2023-08-30T10:08:08.146343Z"
    },
    {
      "amount": "-230.32",
      "archived_at": "2023-08-30T10:08:08.146343Z",
      "categories": {
        "url": "https://app.pennylane.com/api/external/v2/credit_notes/42/categories"
      },
      "created_at": "2023-08-30T10:08:08.146343Z",
      "credited_invoice": {
        "id": 42,
        "url": "https://app.pennylane.com/api/external/v2/customer_invoices/42"
      },
      "currency": "EUR",
      "currency_amount": "-230.32",
      "currency_amount_before_tax": "-196.32",
      "currency_tax": "-34.0",
      "customer": {
        "id": 42,
        "url": "https://app.pennylane.com/api/external/v2/customers/42"
      },
      "customer_invoice_template": {
        "id": -58544204
      },
      "date": "2023-08-30",
      "deadline": "2020-09-02",
      "discount": {
        "type": "relative",
        "value": "nulla reprehenderi"
      },
      "exchange_rate": "1.0",
      "external_reference": "FR123",
      "filename": "my_file.pdf",
      "id": 42,
      "invoice_line_sections": {
        "url": "https://app.pennylane.com/api/external/v2/credit_notes/42/invoice_line_sections"
      },
      "invoice_lines": {
        "url": "https://app.pennylane.com/api/external/v2/credit_notes/42/invoice_lines"
      },
      "invoice_number": "F20230001",
      "label": "Credit note label",
      "language": "fr_FR",
      "ledger_entry": {
        "id": 42002
      },
      "paid": false,
      "pdf_description": "Credit note description",
      "pdf_invoice_free_text": "Thanks for paying this credit note",
      "pdf_invoice_subject": "Credit note subject",
      "public_file_url": "https://app.pennylane.com/public/invoice/pdf?encrypted_id=bzjoVJe...3D%3D",
      "remaining_amount_with_tax": "20.0",
      "remaining_amount_without_tax": "16.0",
      "special_mention": "Additional details",
      "tax": "-34.0",
      "transaction_reference": {
        "banking_provider": "stripe",
        "provider_field_name": "label",
        "provider_field_value": "invoice_number"
      },
      "updated_at": "2023-08-30T10:08:08.146343Z"
    }
  ],
  "next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2"
}

Query Parameters

cursor
string

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.

Example:

"dXBkYXRlZF9hdDoxNjc0MTIzNDU2"

limit
string

Number of items to return per request. Defaults to 20 if not specified. Must be between 1 and 100.

Example:

"20"

filter
string

You can choose to filter items on specific fields. Available fields : invoice_number Available operators : eq, not_eq, in, not_in

Example:

"[{\"field\": \"invoice_number\", \"operator\": \"eq\", \"value\": \"INV-123\"}]"

sort
string

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

Example:

"id"

Response

200
application/json

A list of Credit Notes

The response is of type object.