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/order-forms/{orderFormId}/void

POST/v1/order-forms/{orderFormId}/void
Authorization
x-api-keyAPI key · headerrequired
or
AuthorizationBearer token · headerrequired
Path parameters
orderFormIdstringrequired
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
orderFormIdstring | null
Show properties
Any of:
string
string
null
null
reasonstring | null
Show properties
Any of:
string
string
null
null
Responses
200

Success

dataobjectrequired
Show properties
orderFormIdstringrequired
min length 1
quoteVersionIdstringrequired
min length 1
quoteIdstringrequired
min length 1
customerIdstringrequired
min length 1
billingAccountIdstringrequired
min length 1
merchantAccountIdstringrequired
min length 1
numberstringrequired
min length 1
statusstringrequired
Allowed:generatedsignedexpiredvoided
metadataobjectrequired
createdAtstringrequired
min length 1
updatedAtstringrequired
min length 1
voidReasonstring | null
Show properties
Any of:
string
string
null
null
expiresAtstring | null
Show properties
Any of:
string
string
null
null
signedAtstring | null
Show properties
Any of:
string
string
null
null
signedDocumentRefstring | null
Show properties
Any of:
string
string
null
null
voidedAtstring | 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/order-forms/{orderFormId}/void?environment=sandbox&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"reason":"customer declined"}'
Response
{
  "data": {
    "orderFormId": "string",
    "quoteVersionId": "string",
    "quoteId": "string",
    "customerId": "string",
    "billingAccountId": "string",
    "merchantAccountId": "string",
    "number": "string",
    "status": "generated",
    "metadata": {
      "property1": "string",
      "property2": "string"
    },
    "createdAt": "string",
    "updatedAt": "string",
    "voidReason": "manual",
    "expiresAt": "string",
    "signedAt": "string",
    "signedDocumentRef": "string",
    "voidedAt": "string"
  },
  "requestId": "string"
}