Skip to content
Payments docs are in beta — the OpenAPI contract is the source of truth.API reference
VortexPayments
Esc
↑↓navigate↵open⌘Jpreview

Create a billing quote with its first draft version from catalog price lines

POST/v1/quotes
Authorization
AuthorizationBearer token · headerrequired
Public API key bearer token.
Query parameters
environmentstringrequired
merchantAccountIdstringrequired
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
quoteIdstring
orderTypestringrequired
Allowed:one_offsubscription_creationsubscription_amendment
customerIdstringrequired
billingAccountIdstringrequired
subscriptionIdstring
Required for subscription_amendment quotes; the subscription being amended.
currencystringrequired
ISO 4217 alpha-3; only currencies processable on current rails are accepted
linesBillingQuoteLineInput[]required
Show properties
Array of BillingQuoteLineInput
priceIdstringrequired
quantityinteger
min 1
unitAmountinteger
Negotiated minor-unit amount. Overrides the catalog price when set.
min 0
descriptionstring
couponIdsstring[]
termsstring
metadataMetadata
Responses
201Success
dataobjectrequired
requestIdstringrequired
400Bad request, including malformed JSON
errorobjectrequired
Show properties
codestringrequired
Allowed:bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_error
messagestringrequired
requestIdstring
docsUrlstring
Deep link to the errors guide section for this code.
detailsobject
401Missing or invalid API key
errorobjectrequired
Show properties
codestringrequired
Allowed:bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_error
messagestringrequired
requestIdstring
docsUrlstring
Deep link to the errors guide section for this code.
detailsobject
409Conflict, including idempotency body drift
errorobjectrequired
Show properties
codestringrequired
Allowed:bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_error
messagestringrequired
requestIdstring
docsUrlstring
Deep link to the errors guide section for this code.
detailsobject
422Validation failed
errorobjectrequired
Show properties
codestringrequired
Allowed:bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_error
messagestringrequired
requestIdstring
docsUrlstring
Deep link to the errors guide section for this code.
detailsobject
429API key rate limit exceeded
errorobjectrequired
Show properties
codestringrequired
Allowed:bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_error
messagestringrequired
requestIdstring
docsUrlstring
Deep link to the errors guide section for this code.
detailsobject
defaultError
errorobjectrequired
Show properties
codestringrequired
Allowed:bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_error
messagestringrequired
requestIdstring
docsUrlstring
Deep link to the errors guide section for this code.
detailsobject
Request
curl -X POST "https://api.vortex.nyc/v1/quotes?environment=string&merchantAccountId=string" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "quoteId": "string",
  "orderType": "one_off",
  "customerId": "string",
  "billingAccountId": "string",
  "subscriptionId": "string",
  "currency": "USD",
  "lines": [
    {
      "priceId": "string",
      "quantity": 0,
      "unitAmount": 0,
      "description": "string"
    }
  ],
  "couponIds": [
    "string"
  ],
  "terms": "string",
  "metadata": {}
}'
Response
{
  "data": {},
  "requestId": "string"
}