---
title: "Partially update a specific vendor credit line item for a purchase order"
method: PATCH
path: "/api/purchase-orders/{purchaseOrderId}/vendor-credit-line-items/{lineItemId}"
tags: ["Purchase Order Vendor Credit Line Item"]
---

# Partially update a specific vendor credit line item for a purchase order

`PATCH /api/purchase-orders/{purchaseOrderId}/vendor-credit-line-items/{lineItemId}`

## Path parameters

- `purchaseOrderId` string, required
- `lineItemId` string, required

## Response `200`

Vendor credit line item

- PurchaseOrderVendorCreditLineItemDto — Represents a vendor credit line item on a purchase order.
  - `id` string, required — Unique id associated to this entity.
  - `name` string, required — line item name
  - `quantity` number, double, required — The line item quantity
  - `vendorCredit` number, double, required — The value of the vendor credit.
  - `itemId` string, required — Item id associated with this credit.
  - `purchaseOrderId` string, nullable — Parent purchase order id associated with this credit.
  - `lineItemId` string, required — Part or outside processing line item id associated with this credit.
  - `description` string, nullable — The line item description.
  - `externalReferences` object, nullable — Arbitrary key-value-pair like data that can be used to later on search for this line item.
  - `accountingCodeId` string, nullable — Accounting code key identifier. Please reference /api/accounting-codes endpoint.
  - `number` integer — Line number
  - `accountingDetails` CommonAccountingDetailsDto, required — An object that contains all accounting details.
    - `classId` string, nullable — Item class identifier. Please reference /api/item-classes endpoint.
    - `incomeAccountId` string, nullable — Income account (chart of accounts) key identifier. Please reference /api/chart-of-accounts endpoint.
    - `assetAccountId` string, nullable — Asset account (chart of accounts) key identifier. Please reference /api/chart-of-accounts endpoint.
    - `expenseAccountId` string, nullable — Expense account (chart of accounts) key identifier. Please reference /api/chart-of-accounts endpoint.
    - `cogsAccountId` string, nullable — COGS account (chart of accounts) key identifier. Please reference /api/chart-of-accounts endpoint.

## Other responses

- `400` — The patch document is malformed — an unknown path, an unsupported operation, or a value the target field cannot hold
- `404` — Purchase order or line item did not exist

## Changes

- **2026-09-11** `c00251431237` — 1 info
  - added the non-success response with the status `400`

[Change history](https://skmtc.dev/fulcrumpro/apis/fulcrum-publicapi/changes/api/purchase-orders/:purchaseOrderId/vendor-credit-line-items/:lineItemId/patch.md)

---

[API](https://skmtc.dev/fulcrumpro/apis/fulcrum-publicapi.md) · [All operations](https://skmtc.dev/fulcrumpro/apis/fulcrum-publicapi/llms.txt) · [OpenAPI document](https://skmtc.dev/fulcrumpro/apis/fulcrum-publicapi/revisions/cb1da877d56e?raw)
