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/refunds

POST/v1/refunds
Authorization
x-api-keyAPI key · headerrequired
or
AuthorizationBearer token · headerrequired
Query parameters
environmentstring
Allowed:sandboxproduction
merchantAccountIdstring
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
paymentIdstringrequired
min length 1
amountnumberrequired
reasonstringrequired
min length 1
requestedByTypestringrequired
Allowed:systemoperatormerchant
requestedByRefstringrequired
min length 1
idempotencyKeystring | null
Show properties
Any of:
string
string
null
null
Responses
201

Success

dataobjectrequired
Show properties
idstringrequired
min length 1
merchantAccountIdstringrequired
min length 1
paymentIdstringrequired
min length 1
amountnumberrequired
currencystringrequired
min length 1
statusstringrequired
Allowed:pendingsucceededfailed
reasonstringrequired
min length 1
terminalSessionIdstring | null
Show properties
Any of:
string
string
null
null
terminalReaderIdstring | null
Show properties
Any of:
string
string
null
null
requestIdstringrequired
min length 1
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
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"}'
Response
{
  "data": {
    "id": "string",
    "merchantAccountId": "string",
    "paymentId": "string",
    "amount": 0,
    "currency": "string",
    "status": "pending",
    "reason": "string",
    "terminalSessionId": "string",
    "terminalReaderId": "string"
  },
  "requestId": "string"
}

Was this page helpful?