---
title: "Refund lines (each quantity once only), optionally back into stock, to the original payments. Needs a reason"
method: POST
path: "/api/v1/sales/{id}/refunds"
---

# Refund lines (each quantity once only), optionally back into stock, to the original payments. Needs a reason

`POST /api/v1/sales/{id}/refunds`

## Request

- Base URL: `http://127.0.0.1:4310`
- URL: `http://127.0.0.1:4310/api/v1/sales/{id}/refunds`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sfb_session`

## Path parameters

- `id` string, required

## Request body

- object
  - `lines` object[], required
    - `sale_line_id` string, uuid, required
    - `quantity` integer
  - `restock` boolean
  - `reason` string, required
  - `idempotency_key` string, required: Unique per change. Repeating it returns the original result.

## Response `201`

OK

- object

## Other responses

- `400`: Validation error
- `401`: Unauthenticated
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict or invalid state

---

[API](https://skmtc.dev/scalingfirm/apis/tsf-booking-api.md) · [All operations](https://skmtc.dev/scalingfirm/apis/tsf-booking-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalingfirm/apis/tsf-booking-api/revisions/81704199cd37?raw)
