---
search:
  tags:
    - terminal
    - POST
seo:
  description: >-
    Reference for the POST
    /v1/card-present-payment-intents/{cardPresentPaymentIntentId}/refund-outcome
    endpoint in the Vortex Payments API.
sidebar:
  label: >-
    POST
    /v1/card-present-payment-intents/{cardPresentPaymentIntentId}/refund-outcome
  badge: POST
title: >-
  POST
  /v1/card-present-payment-intents/{cardPresentPaymentIntentId}/refund-outcome
type: openapi-operation
---
`POST /v1/card-present-payment-intents/{cardPresentPaymentIntentId}/refund-outcome`

**curl**

```bash
curl "https://api.vortex.nyc/v1/card-present-payment-intents/:cardPresentPaymentIntentId/refund-outcome" \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
```

**TypeScript**

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

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

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `outcome` (string, required)
- `amount` (number, required)
- `processorRef` (object, required)
- `reason` (string | null)
- `declineCode` (string | null)
- `declineMessage` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "outcome": "refunded",
  "amount": 0,
  "processorRef": {
    "provider": "string",
    "objectType": "string",
    "objectId": "string",
    "relationship": "string",
    "recordedAt": "string"
  },
  "reason": "string",
  "declineCode": "string",
  "declineMessage": "string"
}
```

**Responses**

- `200` — Success

Response example, 200:

```json
{
  "data": {
    "refundId": "string",
    "cardPresentPaymentIntentId": "string",
    "paymentId": "string",
    "merchantAccountId": "string",
    "amount": 0,
    "currency": "string",
    "status": "refunded",
    "failureCode": "string",
    "createdAt": "string"
  },
  "requestId": "string"
}
```
