---
search:
  tags:
    - paymentLinks
    - POST
seo:
  description: >-
    Reference for the POST /v1/payments/{paymentId}/refund-link endpoint in the
    Vortex Payments API.
sidebar:
  label: POST /v1/payments/{paymentId}/refund-link
  badge: POST
title: POST /v1/payments/{paymentId}/refund-link
type: openapi-operation
---
`POST /v1/payments/{paymentId}/refund-link`

**curl**

```bash
curl "https://api.vortex.nyc/v1/payments/:paymentId/refund-link" \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
```

**TypeScript**

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

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await createPaymentRefundLink({
  client: vortex,
  path: { paymentId: "..." },
  body: {...},
});
```

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `expiresAt` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "expiresAt": "string"
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "link": {
      "linkId": "string",
      "tokenHash": "string",
      "paymentId": "string",
      "status": "active",
      "createdAt": "string",
      "expiresAt": "string"
    },
    "token": "string",
    "hostedRefundPortalUrl": "string"
  },
  "requestId": "string"
}
```
