---
title: "Create refund"
method: POST
path: "/refunds"
tags: ["Refunds"]
---

# Create refund

`POST /refunds`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/refunds`
- Auth: API key in header `Authorization`

Creates a new refund for an order

## Headers

- `Idempotency-Key` string

## Request body

- RefundRequest
  - `order` string: Order ID to refund
  - `amount` integer, nullable: Amount to refund in cents (omit for full refund)
  - `reason` string, nullable: Reason for the refund
  - `notes` string, nullable: Internal notes about the refund

## Response `201`

Refund created

- Refund
  - `id` string, required
  - `object` string, required
  - `amount` integer, required
  - `currency` string, required
  - `reason` string, required
  - `status` string, required
  - `created_at` string, required
  - `provider` string, required
  - `metadata` object, required
  - `order` string, required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `422`: Validation error
- `429`: Rate limit exceeded — 600 requests per minute per credential. Retry after the number of seconds in `Retry-After`.
- `500`: Internal server error

---

[API](https://skmtc.dev/crevio/apis/crevio-api-v1.md) · [All operations](https://skmtc.dev/crevio/apis/crevio-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/crevio/apis/crevio-api-v1/revisions/2219f18ad651?raw)
