---
title: "Create a refund on an Orderline"
method: POST
path: "/ws/sav/refund"
tags: ["Care"]
---

# Create a refund on an Orderline

`POST /ws/sav/refund`

## Rate limiting

This endpoint is rate limited to 500 requests per day.
If you exceed this limit, you will receive a `429` status code.

## Request body

- PostRefundCreateRequest
  - `amount` number — Amount of the refund. Only if refund type is 6
  - `orderline_pk` integer — ID of the Orderline to be refund
  - `refund_type` 4 | 5 | 6 — Type of the refund: * 4 - Full refund for an orderline with state 1 * 5 - Full refund for an orderline with state 2 * 6 - Partial or full refund for an orderline with state 3 Details of the orderline states: | State | Description | |-------|------------------------------------------------| | 0 | New Orderline | | 1 | Orderline paid by the customer | | 2 | Orderline accepted by the seller | | 3 | Orderline delivered to the shipping provider | | 4 | Orderline cancelled | | 5 | Orderline refunded before shipping | | 6 | Orderline refunded after shipping | | 7 | Orderline not paid | | 8 | Orderline pending customer payment |

## Response `201`

Refund Created

## Other responses

- `400` — Payload not acceptable
- `401` — Guest user not allowed
- `403` — Authenticated user not allowed
- `404` — Orderline does not exist

---

[API](https://skmtc.net/backmarket/apis/back-market-api-guidelines.md) · [All operations](https://skmtc.net/backmarket/apis/back-market-api-guidelines/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/backmarket/back-market-api-guidelines/revisions/6a1303364143/schema)
