GET
/
api
/
external
/
v2
/
credit_notes
/
{credit_note_id}
/
invoice_lines
{
  "has_more": true,
  "items": [
    {
      "amount": "-50.4",
      "created_at": "2023-08-30T10:08:08.146343Z",
      "currency_amount": "-50.4",
      "currency_amount_before_tax": "-30",
      "currency_tax": "-10",
      "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor",
      "discount": {
        "type": "absolute",
        "value": "tempor consequat ad"
      },
      "id": 444,
      "imputation_dates": {
        "end_date": "2021-06-30",
        "start_date": "2020-06-30"
      },
      "label": "Demo label",
      "product": {
        "id": 3049,
        "url": "https://app.pennylane.com/api/external/v2/products/42"
      },
      "quantity": "12",
      "raw_currency_unit_price": "5",
      "section_rank": 1,
      "tax": "-10",
      "unit": "piece",
      "updated_at": "2023-08-30T10:08:08.146343Z",
      "vat_rate": "FR_200"
    },
    {
      "amount": "-50.4",
      "created_at": "2023-08-30T10:08:08.146343Z",
      "currency_amount": "-50.4",
      "currency_amount_before_tax": "-30",
      "currency_tax": "-10",
      "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor",
      "discount": {
        "type": "absolute",
        "value": "ipsum esse tempor dolor"
      },
      "id": 444,
      "imputation_dates": {
        "end_date": "2021-06-30",
        "start_date": "2020-06-30"
      },
      "label": "Demo label",
      "product": {
        "id": 3049,
        "url": "https://app.pennylane.com/api/external/v2/products/42"
      },
      "quantity": "12",
      "raw_currency_unit_price": "5",
      "section_rank": 1,
      "tax": "-10",
      "unit": "piece",
      "updated_at": "2023-08-30T10:08:08.146343Z",
      "vat_rate": "FR_200"
    }
  ],
  "next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2"
}

Path Parameters

credit_note_id
string
required

(Required)

Example:

"1234"

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"

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

Returns the list of invoice lines for a credit note

The response is of type object.