---
title: "Partial update bill line item"
method: PATCH
path: "/bills/{bill_id}/line-items/{id}/"
tags: ["Bill Line Items"]
---

# Partial update bill line item

`PATCH /bills/{bill_id}/line-items/{id}/`

Endpoint for partially updating an existing bill line item.

## Path parameters

- `bill_id` string, required
- `id` string, required

## Headers

- `X-Wafeq-Idempotency-Key` string

## Request body

- PatchedBillLineItem — Augment ``custom_fields`` in the output with computed CALCULATED field values. Apply to any line-item serializer whose model has ``get_resolved_custom_fields``.
  - `account` string — The account associated with this line item.
  - `amortization` AmortizationInput
    - `account` string, required — The expense account used for amortization recognition.
    - `amount` number, double, required — The total amount to amortize.
    - `description` string, required — The description of the amortization.
    - `duration` '3_MONTHS' | '4_MONTHS' | '6_MONTHS' | '12_MONTHS' | '24_MONTHS' | 'CUSTOM', required — * `3_MONTHS` - 3 Months * `4_MONTHS` - 4 Months * `6_MONTHS` - 6 Months * `12_MONTHS` - 12 Months * `24_MONTHS` - 24 Months * `CUSTOM` - Custom Full information for [DurationEnum](durationenum)
    - `end_date` string, date, required — The end date of the amortization schedule.
    - `recognition_type` 'DAILY' | 'MONTHLY', required — * `DAILY` - Daily * `MONTHLY` - Monthly Full information for [RecognitionTypeEnum](recognitiontypeenum)
    - `start_date` string, date, required — The start date of the amortization schedule.
    - `use_entity_date` boolean, required — Whether the amortization start date follows the bill date.
  - `amortization_id` string, nullable — The unique identifier of the amortization linked to this line item, if any.
  - `cost_center` string — The cost center associated with this line item, if any.
  - `created_ts` string, date-time — The timestamp in UTC when the line item was created.
  - `custom_fields` object — A mapping of custom field IDs to their values.
  - `description` string — The detailed description of the line item.
  - `discount` number, double, nullable — The discount as the percentage.
  - `id` string — The unique identifier of the line item.
  - `item` string — The item associated with this line item.
  - `item_unit_of_measure` string, nullable — The item unit of measure for this line item.
  - `legacy_id` string — [Deprecated] The legacy identifier of the line item.
  - `line_amount` number, double — The total amount for this line item, calculated as quantity * unit_amount - discount.
  - `modified_ts` string, date-time — The timestamp in UTC when the line item was last modified.
  - `order` integer
  - `quantity` number, double — The quantity of the item or service.
  - `tax_amount` number, double — The total tax amount for this line item.
  - `tax_rate` string — The tax rate applied to this line item, if any.
  - `unit_amount` number, double — The price per unit of the item or service.

## Response `200`

- BillLineItem — Augment ``custom_fields`` in the output with computed CALCULATED field values. Apply to any line-item serializer whose model has ``get_resolved_custom_fields``.
  - `account` string, required — The account associated with this line item.
  - `amortization` AmortizationInput
    - `account` string, required — The expense account used for amortization recognition.
    - `amount` number, double, required — The total amount to amortize.
    - `description` string, required — The description of the amortization.
    - `duration` '3_MONTHS' | '4_MONTHS' | '6_MONTHS' | '12_MONTHS' | '24_MONTHS' | 'CUSTOM', required — * `3_MONTHS` - 3 Months * `4_MONTHS` - 4 Months * `6_MONTHS` - 6 Months * `12_MONTHS` - 12 Months * `24_MONTHS` - 24 Months * `CUSTOM` - Custom Full information for [DurationEnum](durationenum)
    - `end_date` string, date, required — The end date of the amortization schedule.
    - `recognition_type` 'DAILY' | 'MONTHLY', required — * `DAILY` - Daily * `MONTHLY` - Monthly Full information for [RecognitionTypeEnum](recognitiontypeenum)
    - `start_date` string, date, required — The start date of the amortization schedule.
    - `use_entity_date` boolean, required — Whether the amortization start date follows the bill date.
  - `amortization_id` string, nullable, required — The unique identifier of the amortization linked to this line item, if any.
  - `cost_center` string — The cost center associated with this line item, if any.
  - `created_ts` string, date-time, required — The timestamp in UTC when the line item was created.
  - `custom_fields` object — A mapping of custom field IDs to their values.
  - `description` string, required — The detailed description of the line item.
  - `discount` number, double, nullable — The discount as the percentage.
  - `id` string, required — The unique identifier of the line item.
  - `item` string — The item associated with this line item.
  - `item_unit_of_measure` string, nullable — The item unit of measure for this line item.
  - `legacy_id` string, required — [Deprecated] The legacy identifier of the line item.
  - `line_amount` number, double, required — The total amount for this line item, calculated as quantity * unit_amount - discount.
  - `modified_ts` string, date-time, required — The timestamp in UTC when the line item was last modified.
  - `order` integer
  - `quantity` number, double, required — The quantity of the item or service.
  - `tax_amount` number, double, required — The total tax amount for this line item.
  - `tax_rate` string — The tax rate applied to this line item, if any.
  - `unit_amount` number, double, required — The price per unit of the item or service.

---

[API](https://skmtc.net/wafeq/apis/wafeq-public-api.md) · [All operations](https://skmtc.net/wafeq/apis/wafeq-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wafeq/wafeq-public-api/revisions/36816b4fce7f/schema)
