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/payment-intents/{paymentIntentId}/cancel

POST/v1/payment-intents/{paymentIntentId}/cancel
Authorization
x-api-keyAPI key · headerrequired
or
AuthorizationBearer token · headerrequired
Path parameters
paymentIntentIdstringrequired
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
paymentIntentIdstring | null
Show properties
Any of:
string
string
null
null
idempotencyKeystring | null
Show properties
Any of:
string
string
null
null
Responses
200

Success

dataobjectrequired
Show properties
idstringrequired
min length 1
paymentIdstring | null
Show properties
Any of:
string
string
null
null
merchantAccountIdstringrequired
min length 1
customerProfileIdstring | null
Show properties
Any of:
string
string
null
null
paymentMethodIdstring | null
Show properties
Any of:
string
string
null
null
statusstringrequired
min length 1
amountnumberrequired
currencystringrequired
min length 1
requiresActionbooleanrequired
canCapturebooleanrequired
canCancelbooleanrequired
canRetrybooleanrequired
nextStepstringrequired
min length 1
nextActionTypestring | null
Show properties
Any of:
string
string
null
null
hostedActionUrlstring | null
Show properties
Any of:
string
string
null
null
platformFeeAmountnumber | null
Show properties
Any of:
number
number
null
null
createdAtstring | 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/payment-intents/:paymentIntentId/cancel" \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
Response
{
  "data": {
    "id": "string",
    "paymentId": "string",
    "merchantAccountId": "string",
    "customerProfileId": "string",
    "paymentMethodId": "string",
    "status": "string",
    "amount": 0,
    "currency": "string",
    "requiresAction": true,
    "canCapture": true,
    "canCancel": true,
    "canRetry": true,
    "nextStep": "string",
    "nextActionType": "string",
    "hostedActionUrl": "string",
    "platformFeeAmount": 0,
    "createdAt": "string"
  },
  "requestId": "string"
}