Invoice Line Items

List invoice line items

Changed on

Endpoint for retrieving a list of invoice line items.

get/invoices/{invoice_id}/line-items/

Request

  • Base URL
    https://api.wafeq.com/v1
  • URL
    https://api.wafeq.com/v1/invoices/{invoice_id}/line-items/
  • Auth
    API key in header Authorization

Path parameters

invoice_idstring required

Query parameters

expandstring

Comma-separated related objects to return in full instead of as IDs. Accepted values: account, account.parent, item, tax_rate, cost_center. Nested relations are joined with a dot.

pageinteger

A page number within the paginated result set.

page_sizeinteger

Number of results to return per page.

Response

countinteger required

The total number of results across all pages.

nextstring uri nullable

The URL of the next page of results, or null on the last page.

previousstring uri nullable

The URL of the previous page of results, or null on the first page.

Example response

{
  "count": 123,
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

Changes

    • breaking

      added to the // response property oneOf list for the response status

    • info

      added the new optional query request parameter expand

    • info

      removed from the // response property oneOf list for the response status