Skip to content
Payments docs are in beta — the OpenAPI contract is the source of truth.API reference
VortexPayments
Esc
↑↓navigate↵open⌘Jpreview

POST /v1/card-present-payment-intents/{cardPresentPaymentIntentId}/refund-outcome

POST/v1/card-present-payment-intents/{cardPresentPaymentIntentId}/refund-outcome
Authorization
x-api-keyAPI key · headerrequired
or
AuthorizationBearer token · headerrequired
Path parameters
cardPresentPaymentIntentIdstringrequired
min length 1
Header parameters
Idempotency-Keystring

Required for production-safe retries on mutating routes. Reusing a key with a different request body returns 409.

min length 1
Request body
requiredapplication/json
environmentstring | null
Show properties
Any of:
string
string
null
null
merchantAccountIdstring | null
Show properties
Any of:
string
string
null
null
outcomestringrequired
Allowed:refundeddeclined
amountnumberrequired
processorRefobjectrequired
Show properties
providerstringrequired
min length 1
objectTypestringrequired
min length 1
objectIdstringrequired
min length 1
relationshipstring | null
Show properties
Any of:
string
string
null
null
recordedAtstring | null
Show properties
Any of:
string
string
null
null
reasonstring | null
Show properties
Any of:
string
string
null
null
declineCodestring | null
Show properties
Any of:
string
string
null
null
declineMessagestring | null
Show properties
Any of:
string
string
null
null
Responses
200

Success

dataobjectrequired
Show properties
refundIdstringrequired
min length 1
cardPresentPaymentIntentIdstringrequired
min length 1
paymentIdstringrequired
min length 1
merchantAccountIdstringrequired
min length 1
amountnumberrequired
currencystringrequired
min length 1
statusstringrequired
Allowed:refundeddeclined
failureCodestring | null
Show properties
Any of:
string
string
null
null
createdAtstringrequired
min length 1
requestIdstringrequired
min length 1
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
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 '{...}'
Response
{
  "data": {
    "refundId": "string",
    "cardPresentPaymentIntentId": "string",
    "paymentId": "string",
    "merchantAccountId": "string",
    "amount": 0,
    "currency": "string",
    "status": "refunded",
    "failureCode": "string",
    "createdAt": "string"
  },
  "requestId": "string"
}