---
title: "Update a specific refund line item for a sales order"
method: PUT
path: "/api/sales-orders/{salesOrderId}/refund-line-items/{lineItemId}"
tags: ["Sales Order Refund Line Item"]
---

# Update a specific refund line item for a sales order

`PUT /api/sales-orders/{salesOrderId}/refund-line-items/{lineItemId}`

## Path parameters

- `salesOrderId` string, required
- `lineItemId` string, required

## Request body

- SalesOrderRefundLineItemUpdateDto — Represents a refund line item on a sales order.
  - `description` string, nullable — The refund line item description.
  - `refundQuantity` number, double, required — The quantity to be refunded.
  - `refundAmount` number, double, required — The refund amount.
  - `accountingCodeId` string, nullable — Accounting code key identifier. Please reference /api/accounting-codes endpoint.
  - `refundReasonCodeId` string, nullable — Refund reason code key identifier. Please reference /api/refund-reason-codes endpoint.
  - `isReturn` boolean, nullable — Indicate if a return is expected.
  - `returnQuantity` number, double, nullable — The quantity to be returned.
  - `externalReferences` object, nullable — Arbitrary key-value-pair like data that can be used to later on search for this line item.

## Response `200`

Refund line item

- SalesOrderRefundLineItemDto — Refund line item.
  - `id` string, required — Unique id associated to this entity.
  - `refundedLineId` string, required — The related, original line id that was refunded.
  - `name` string, required — The line item name.
  - `description` string, nullable — The refund line item description. Defaults to the item's description if none specified.
  - `refundQuantity` number, double, required — The quantity to be refunded.
  - `refundAmount` number, double, required — The refund amount.
  - `accountingCodeId` string, nullable — Accounting code key identifier. Please reference /api/accounting-codes endpoint.
  - `refundReasonCodeId` string, nullable — Refund reason code key identifier. Please reference /api/refund-reason-codes endpoint.
  - `isReturn` boolean, nullable — Indicate if a return is expected.
  - `returnQuantity` number, double, nullable — The quantity to be returned.
  - `externalReferences` object, nullable — Arbitrary key-value-pair like data that can be used to later on search for this line item.
  - `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` — Sales order or line items 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/a41e60b375bc/schema)
