---
title: "Partially update a specific refund line item for a purchase order"
method: PATCH
path: "/api/invoices/{invoiceId}/refund-line-items/{lineItemId}"
tags: ["Invoice Refund Line Item"]
---

# Partially update a specific refund line item for a purchase order

`PATCH /api/invoices/{invoiceId}/refund-line-items/{lineItemId}`

## Path parameters

- `invoiceId` string, required
- `lineItemId` string, required

## Response `200`

Refund line item

- InvoiceRefundLineItemDto — Represents a refund line item on a sales order.
  - `id` string, required — Unique id associated to this entity.
  - `quantity` number, double, required — The line item quantity
  - `price` number, double, required — The line item price.
  - `itemId` string, required — Item id associated with this line item.
  - `name` string, required — The name of the line item. Defaults to the item's description if none specified.
  - `description` string, nullable — The refund line item description. Defaults to the item's description if none specified.
  - `externalReferences` object, nullable — Arbitrary key-value-pair like data that can be used to later on search for this line item.
  - `salesOrderLineItemId` string, required — Id that references the sales order line item that was refunded.
  - `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` — Invoice 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/versions/1b5649cff14a/schema)
