v1

latestOpenAPI 3.1.12026-07-24260246894.7 KB
Invoice Line Items

Partial update invoice line item

Endpoint for partially updating an existing invoice line item.

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

Path parameters

invoice_idstring required
idstring required

Headers

X-Wafeq-Idempotency-Keystring

Client-provided UUID to uniquely identify a request

Request body

accountstring

The account associated with this line item.

cost_centerstring

The cost center associated with this line item.

created_tsstring date-time

The timestamp in UTC when the line item was created.

custom_fieldsobject

A mapping of custom field IDs to their values.

descriptionstring

The detailed description of the line item.

discountnumber double nullable

The discount as the percentage.

idstring

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

[Deprecated] The legacy identifier of the line item.

line_amountnumber double

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

modified_tsstring date-time

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

orderinteger
quantitynumber double

The quantity of the item or service.

revenue_recognition_idstring nullable

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

tax_amountnumber double

The total tax amount for this line item.

tax_ratestring

The tax rate applied to this line item.

unit_amountnumber double

The price per unit of the item or service.

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