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/orders/{orderId}/amend

POST/v1/orders/{orderId}/amend
Authorization
x-api-keyAPI key · headerrequired
or
AuthorizationBearer token · headerrequired
Path parameters
orderIdstringrequired
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
orderIdstring | null
Show properties
Any of:
string
string
null
null
linesobject[] | null
Show properties
Any of:
object[]
Array of object
priceIdstringrequired
min length 1
quantitynumber | null
Show properties
Any of:
number
number
null
null
unitAmountnumber | null
Show properties
Any of:
number
number
null
null
descriptionstring | null
Show properties
Any of:
string
string
null
null
null
null
couponIdsstring[] | null
Show properties
Any of:
string[]
Array of string
string
null
null
termsstring | null
Show properties
Any of:
string
string
null
null
metadataobject | null
Show properties
Any of:
object
object
null
null
idempotencyKeystring | null
Show properties
Any of:
string
string
null
null
Responses
200

Success

dataobjectrequired
Show properties
quoteobjectrequired
Show properties
quoteIdstringrequired
min length 1
numberstringrequired
min length 1
orderTypestringrequired
Allowed:one_offsubscription_creationsubscription_amendment
customerIdstringrequired
min length 1
billingAccountIdstringrequired
min length 1
merchantAccountIdstringrequired
min length 1
metadataobjectrequired
createdAtstringrequired
min length 1
updatedAtstringrequired
min length 1
subscriptionIdstring | null
Show properties
Any of:
string
string
null
null
currentVersionIdstring | null
Show properties
Any of:
string
string
null
null
amendsOrderIdstring | null
Show properties
Any of:
string
string
null
null
amendsQuoteVersionIdstring | null
Show properties
Any of:
string
string
null
null
versionsobject[]required
Show properties
Array of object
quoteVersionIdstringrequired
min length 1
quoteIdstringrequired
min length 1
versionnumberrequired
statusstringrequired
Allowed:draftapprovedvoided
currencystringrequired
min length 1
billingItemsobjectrequired
Show properties
linesobject[]required
Show properties
Array of object
lineIdstringrequired
min length 1
priceIdstringrequired
min length 1
payloadobjectrequired
Show properties
priceIdstringrequired
min length 1
quantitynumberrequired
productIdstring | null
Show properties
Any of:
string
string
null
null
productNamestring | null
Show properties
Any of:
string
string
null
null
priceTypestring | null
Show properties
Any of:
string
string
null
null
unitAmountnumber | null
Show properties
Any of:
number
number
null
null
descriptionstring | null
Show properties
Any of:
string
string
null
null
overridesobject | null
Show properties
Any of:
object
quantitynumber | null
Show properties
Any of:
number
number
null
null
unitAmountnumber | null
Show properties
Any of:
number
number
null
null
descriptionstring | null
Show properties
Any of:
string
string
null
null
invoiceDisplayNamestring | null
Show properties
Any of:
string
string
null
null
null
null
couponIdsstring[] | null
Show properties
Any of:
string[]
Array of string
string
null
null
subtotalnumberrequired
totalnumberrequired
metadataobjectrequired
createdAtstringrequired
min length 1
updatedAtstringrequired
min length 1
voidReasonstring | null
Show properties
Any of:
string
string
null
null
termsstring | null
Show properties
Any of:
string
string
null
null
approvedAtstring | null
Show properties
Any of:
string
string
null
null
voidedAtstring | null
Show properties
Any of:
string
string
null
null
currentVersionobject | nullrequired
Show properties
Any of:
object
quoteVersionIdstringrequired
min length 1
quoteIdstringrequired
min length 1
versionnumberrequired
statusstringrequired
Allowed:draftapprovedvoided
currencystringrequired
min length 1
billingItemsobjectrequired
Show properties
linesobject[]required
Show properties
Array of object
lineIdstringrequired
min length 1
priceIdstringrequired
min length 1
payloadobjectrequired
Show properties
priceIdstringrequired
min length 1
quantitynumberrequired
productIdstring | null
Show properties
Any of:
string
string
null
null
productNamestring | null
Show properties
Any of:
string
string
null
null
priceTypestring | null
Show properties
Any of:
string
string
null
null
unitAmountnumber | null
Show properties
Any of:
number
number
null
null
descriptionstring | null
Show properties
Any of:
string
string
null
null
overridesobject | null
Show properties
Any of:
object
quantitynumber | null
Show properties
Any of:
number
number
null
null
unitAmountnumber | null
Show properties
Any of:
number
number
null
null
descriptionstring | null
Show properties
Any of:
string
string
null
null
invoiceDisplayNamestring | null
Show properties
Any of:
string
string
null
null
null
null
couponIdsstring[] | null
Show properties
Any of:
string[]
Array of string
string
null
null
subtotalnumberrequired
totalnumberrequired
metadataobjectrequired
createdAtstringrequired
min length 1
updatedAtstringrequired
min length 1
voidReasonstring | null
Show properties
Any of:
string
string
null
null
termsstring | null
Show properties
Any of:
string
string
null
null
approvedAtstring | null
Show properties
Any of:
string
string
null
null
voidedAtstring | null
Show properties
Any of:
string
string
null
null
null
null
requestIdstringrequired
min length 1
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl "https://api.vortex.nyc/v1/orders/{orderId}/amend?environment=sandbox&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lines":[{"priceId":"bprice_seats","quantity":10}]}'
Response
{
  "data": {
    "quote": {
      "quoteId": "string",
      "number": "string",
      "orderType": "one_off",
      "customerId": "string",
      "billingAccountId": "string",
      "merchantAccountId": "string",
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "createdAt": "string",
      "updatedAt": "string",
      "subscriptionId": "string",
      "currentVersionId": "string",
      "amendsOrderId": "string",
      "amendsQuoteVersionId": "string"
    },
    "versions": [
      {
        "quoteVersionId": "string",
        "quoteId": "string",
        "version": 0,
        "status": "draft",
        "currency": "string",
        "billingItems": {
          "lines": [
            {
              "lineId": "string",
              "priceId": "string",
              "payload": {
                "priceId": "string",
                "quantity": 0,
                "productId": "string",
                "productName": "string",
                "priceType": "string",
                "unitAmount": 0,
                "description": "string"
              },
              "overrides": {
                "quantity": 0,
                "unitAmount": 0,
                "description": "string",
                "invoiceDisplayName": "string"
              }
            }
          ],
          "couponIds": [
            "string"
          ]
        },
        "subtotal": 0,
        "total": 0,
        "metadata": {
          "property1": "string",
          "property2": "string"
        },
        "createdAt": "string",
        "updatedAt": "string",
        "voidReason": "manual",
        "terms": "string",
        "approvedAt": "string",
        "voidedAt": "string"
      }
    ],
    "currentVersion": {
      "quoteVersionId": "string",
      "quoteId": "string",
      "version": 0,
      "status": "draft",
      "currency": "string",
      "billingItems": {
        "lines": [
          {
            "lineId": "string",
            "priceId": "string",
            "payload": {
              "priceId": "string",
              "quantity": 0,
              "productId": "string",
              "productName": "string",
              "priceType": "string",
              "unitAmount": 0,
              "description": "string"
            },
            "overrides": {
              "quantity": 0,
              "unitAmount": 0,
              "description": "string",
              "invoiceDisplayName": "string"
            }
          }
        ],
        "couponIds": [
          "string"
        ]
      },
      "subtotal": 0,
      "total": 0,
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "createdAt": "string",
      "updatedAt": "string",
      "voidReason": "manual",
      "terms": "string",
      "approvedAt": "string",
      "voidedAt": "string"
    }
  },
  "requestId": "string"
}

Was this page helpful?