Invoice Line Items

Retrieve invoice line item

Changed on

Endpoint for retrieving a single invoice line item.

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

Request

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

Path parameters

invoice_idstring required
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.

Response

accountstring required

The account associated with this line item.

cost_centerstring

The cost center associated with this line item.

created_tsstring date-time required

The timestamp in UTC when the line item was created.

custom_fieldsobject

A mapping of custom field IDs to their values.

descriptionstring required

The detailed description of the line item.

discountnumber double nullable

The discount as the percentage.

idstring required

The unique identifier of the line item.

itemstring

The item associated with this line item.

item_unit_of_measurestring nullable

The item unit of measure for this line item.

legacy_idstring required

[Deprecated] The legacy identifier of the line item.

line_amountnumber double required

The total amount for this line item (quantity * unit_amount).

modified_tsstring date-time required

The timestamp in UTC when the line item was last modified.

orderinteger

The position of the line item within the document.

quantitynumber double required

The quantity of the item or service.

revenue_recognition_idstring nullable required

The unique identifier of the revenue recognition linked to this line item, if any.

tax_amountnumber double required

The total tax amount for this line item.

tax_ratestring

The tax rate applied to this line item.

unit_amountnumber double required

The price per unit of the item or service.

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