Invoices

Get invoice line items

Get the line items for an invoice

Authorization

A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:

Service Token Accesses read_invoices

OAuth Scopes

ResourceScopes
Organizationread_invoices
get/organizations/{organization}/invoices/{id}/line-items

Path parameters

organizationstring required

Organization name slug from list_organizations. Example: acme.

idstring required

Invoice public ID from list_invoices. Example: aabb12123434.

Query parameters

pageinteger

If provided, specifies the page offset of returned results

per_pageinteger

If provided, specifies the number of returned results

Response

Gets the line items for an invoice

typestring required

The response type. Always "list" for paginated responses.

current_pageinteger required

The current page number

per_pageinteger required

The maximum number of results per page

next_pageinteger nullable required

The next page number, or null when this is the last page

next_page_urlstring nullable required

The next page of results, or null when this is the last page

prev_pageinteger nullable required

The previous page number, or null when this is the first page

prev_page_urlstring nullable required

The previous page of results, or null when this is the first page

Changes

Changed in 4 of the 25 revisions of this API.73

    • added the required property per_page to the response with the 200 status

      response-required-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the required property data/items/cloudflare_billed to the response with the 200 status

      response-required-property-added

    • the response property data/items/resource/deleted_at became nullable for the status 200

      response-property-became-nullable

    • the response property next_page became nullable for the status 200

      response-property-became-nullable

    • the response property next_page_url became nullable for the status 200

      response-property-became-nullable

    • the response property prev_page became nullable for the status 200

      response-property-became-nullable

    • the response property prev_page_url became nullable for the status 200

      response-property-became-nullable

    • added the required property type to the response with the 200 status

      response-required-property-added

    • for the query request parameter page, the type/format was changed from number/ to integer/

      request-parameter-type-changed

    • for the query request parameter per_page, the type/format was changed from number/ to integer/

      request-parameter-type-changed