v1

latestOpenAPI 3.1.12026-07-24260246894.7 KB
Bill Line Items

Partial update bill line item

Endpoint for partially updating an existing bill line item.

patch/bills/{bill_id}/line-items/{id}/

Path parameters

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

amortization_idstring nullable

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

cost_centerstring

The cost center associated with this line item, if any.

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, calculated as quantity * unit_amount - discount.

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.

tax_amountnumber double

The total tax amount for this line item.

tax_ratestring

The tax rate applied to this line item, if any.

unit_amountnumber double

The price per unit of the item or service.

Response

accountstring required

The account associated with this line item.

amortization_idstring nullable required

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

cost_centerstring

The cost center associated with this line item, if any.

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, calculated as quantity * unit_amount - discount.

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.

tax_amountnumber double required

The total tax amount for this line item.

tax_ratestring

The tax rate applied to this line item, if any.

unit_amountnumber double required

The price per unit of the item or service.