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/invoices/{invoiceId}/refund

POST/v1/invoices/{invoiceId}/refund
Authorization
x-api-keyAPI key · headerrequired
or
AuthorizationBearer token · headerrequired
Path parameters
invoiceIdstringrequired
min length 1
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
organizationIdstring | null
Show properties
Any of:
string
string
null
null
invoiceIdstring | null
Show properties
Any of:
string
string
null
null
paymentIdstringrequired
min length 1
amountnumberrequired
reasonstringrequired
min length 1
requestedByTypestringrequired
Allowed:systemoperator
requestedByRefstringrequired
min length 1
idempotencyKeystring | null
Show properties
Any of:
string
string
null
null
taxableboolean | null
Show properties
Any of:
boolean
boolean
null
null
customerTaxAddressobject | null
Show properties
Any of:
object
line1stringrequired
min length 1
citystringrequired
min length 1
regionstringrequired
min length 1
postalCodestringrequired
min length 1
countrystringrequired
min length 1
line2string | null
Show properties
Any of:
string
string
null
null
null
null
taxBehaviorstring | null
Show properties
Any of:
string
string
null
null
taxClassificationKeystring | null
Show properties
Any of:
string
string
null
null
Responses
200

Success

dataobjectrequired
Show properties
invoiceIdstringrequired
min length 1
refundIdstringrequired
min length 1
refundStatusstringrequired
Allowed:pendingsucceededfailed
requestIdstringrequired
min length 1
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl "https://api.vortex.nyc/v1/invoices/:invoiceId/refund?environment=...&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
Response
{
  "data": {
    "invoiceId": "string",
    "refundId": "string",
    "refundStatus": "pending"
  },
  "requestId": "string"
}