---
title: "Create a refund line item on a sales order"
method: POST
path: "/api/sales-orders/{salesOrderId}/refund-line-items"
tags: ["Sales Order Refund Line Item"]
---

# Create a refund line item on a sales order

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

## Path parameters

- `salesOrderId` string, required

## Request body

- SalesOrderRefundLineItemCreateDto — Represents a refund line item on a sales order.
  - `description` string, nullable — The refund line item description. Defaults to the item's description if none specified.
  - `refundedLineId` string, required — The related, original line id that was refunded.
  - `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 added to sales order

- CreatedResponseDto — Response for a created record
  - `id` string, required — The id of the created record

## Other responses

- `400` — Validation issues with input

---

[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/1b5649cff14a/schema)
