---
title: "Partial update debit note line item"
method: PATCH
path: "/debit-notes/{debit_note_id}/line-items/{id}/"
tags: ["Debit Note Line Items"]
---

# Partial update debit note line item

`PATCH /debit-notes/{debit_note_id}/line-items/{id}/`

Endpoint for partially updating an existing debit note line item.

## Path parameters

- `debit_note_id` string, required
- `id` string, required

## Headers

- `X-Wafeq-Idempotency-Key` string

## Request body

- PatchedDebitNoteLineItem — 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.
  - `cost_center` string — The cost center associated with this line item.
  - `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 line item description.
  - `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 (quantity * unit_amount).
  - `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.
  - `unit_amount` number, double — The unit amount of the item or service.

## Response `200`

- DebitNoteLineItem — 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.
  - `cost_center` string — The cost center associated with this line item.
  - `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 line item description.
  - `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 (quantity * unit_amount).
  - `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.
  - `unit_amount` number, double, required — The unit amount 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)
