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

- `404` — Purchase order or line item did not exist

---

[API](https://skmtc.net/fulcrumpro/apis/fulcrum-publicapi.md) · [All operations](https://skmtc.net/fulcrumpro/apis/fulcrum-publicapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fulcrumpro/fulcrum-publicapi/revisions/016c1fd45a3f/schema)
