---
search:
  tags:
    - refunds
    - POST
seo:
  description: Reference for the POST /v1/refunds endpoint in the Vortex Payments API.
sidebar:
  label: POST /v1/refunds
  badge: POST
title: POST /v1/refunds
type: openapi-operation
---
`POST /v1/refunds`

**curl**

```bash
curl "https://api.vortex.nyc/v1/refunds?environment=sandbox&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"paymentId":"pay_123","amount":4900,"reason":"customer_request","requestedByType":"merchant","requestedByRef":"bcust_123"}'
```

**TypeScript**

```ts
import { createRefund, createVortex } from "@vortex-api/vortex/2026-09";

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await createRefund({
  client: vortex,
  query: { environment: "sandbox", merchantAccountId: "..." },
  body: {"paymentId":"pay_123","amount":4900,"reason":"customer_request","requestedByType":"merchant","requestedByRef":"bcust_123"},
});
```

**Request body** (`application/json`, required)

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `paymentId` (string, required)
- `amount` (number, required)
- `reason` (string, required)
- `requestedByType` (string, required)
- `requestedByRef` (string, required)
- `idempotencyKey` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "paymentId": "string",
  "amount": 0,
  "reason": "string",
  "requestedByType": "system",
  "requestedByRef": "string",
  "idempotencyKey": "string"
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "id": "string",
    "merchantAccountId": "string",
    "paymentId": "string",
    "amount": 0,
    "currency": "string",
    "status": "pending",
    "reason": "string",
    "terminalSessionId": "string",
    "terminalReaderId": "string"
  },
  "requestId": "string"
}
```
