Quotes

List invoice lines for a quote

Changed on

List invoice lines for a quote

ℹ️ This endpoint requires one of the following scopes: quotes:all, quotes:readonly

get/api/external/v2/quotes/{quote_id}/invoice_lines

Request

  • Base URL
    https://app.pennylane.com
  • URL
    https://app.pennylane.com/api/external/v2/quotes/{quote_id}/invoice_lines
  • Auth
    OAuth 2
    Authorization code: https://app.pennylane.com/oauth/authorize
    Token URL: https://app.pennylane.com/oauth/oauth/token scopes: quotes:all, quotes:readonly

Path parameters

quote_idinteger required

Query parameters

cursorstring
Example:dXBkYXRlZF9hdDoxNjc0MTIzNDU2

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.

limitinteger
Example:20

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

sortstring

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

Headers

X-Company-Idstring
Example:12345

Numeric ID of the company to act on. Required when authenticating with a firm token. Ignored when the token is already bound to a company.

Response

Returns the list of invoice lines for a quote

has_moreboolean required

Indicates whether additional results are available beyond this set. Use this flag to determine if another request is needed.

next_cursorstring nullable required

Cursor to retrieve the next set of results. Include this value in the cursor parameter of your next request to fetch subsequent items. A null next_cursor in the response indicates no further results.

Example response

{
  "has_more": true,
  "next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2",
  "items": [
    {
      "id": 444,
      "label": "Demo label",
      "unit": "piece",
      "quantity": "12",
      "amount": "50.4",
      "currency_amount": "50.4",
      "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor",
      "product": {
        "id": 3049,
        "url": "https://app.pennylane.com/api/external/v2/products/42"
      },
      "vat_rate": "FR_200",
      "currency_amount_before_tax": "30",
      "currency_tax": "10",
      "tax": "10",
      "raw_currency_unit_price": "5",
      "discount": {
        "value": "25"
      },
      "section_rank": 1,
      "created_at": "2023-08-30T10:08:08.146343Z",
      "updated_at": "2023-08-30T10:08:08.146343Z",
      "custom_fields": [
        {
          "name": "color"
        }
      ]
    }
  ]
}

Changes

    • warning

      added the new DE_intracom_exempt_BU0233 enum value to the // response property for the response status

    • warning

      added the new ES_intracom_sales_goods enum value to the // response property for the response status

    • warning

      added the new ES_intracom_sales_services enum value to the // response property for the response status

    • warning

      added the new ES_isp_purchases_100 enum value to the // response property for the response status

    • warning

      added the new ES_isp_purchases_210 enum value to the // response property for the response status

    • warning

      added the new ES_isp_sales enum value to the // response property for the response status

    • warning

      added the new ES_suplido enum value to the // response property for the response status

    • info

      added the new optional header request parameter X-Company-Id

    • info

      added the required property // to the response with the status