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

Quote tax for a draft invoice

POST/v1/invoices/{invoiceId}/tax/quote
Authorization
AuthorizationBearer token · headerrequired

Public API key bearer token.

Path parameters
invoiceIdstringrequired
Query parameters
environmentstringrequired

Merchant environment — key-bound keys resolve it from the credential; unbound callers default to sandbox.

Allowed:sandboxproduction
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
customerTaxAddressTaxAddressrequired
Show properties
line1stringrequired
line2string
citystringrequired
regionstringrequired
postalCodestringrequired
countrystringrequired
taxBehaviorPolicyTaxBehaviorPolicyRequest
Show properties
behaviorTaxBehaviorrequired
Allowed:exclusiveinclusivelocation_based
locationRefstring
requestedByRefstring
Responses
200

Success

dataobjectrequired
Show properties
taxInvoiceTaxrequired
Show properties
invoiceNumberstringrequired
statusstringrequired
Allowed:not_requiredquote_pendingquotedfinalization_pendingfinalizedfailedvoidedreversed
currencystringrequired
subtotalintegerrequired
taxTotalintegerrequired
totalintegerrequired
evidenceVersionstringrequired
taxBehaviorPolicyTaxBehaviorPolicyrequired
Show properties
behaviorTaxBehaviorrequired
Allowed:exclusiveinclusivelocation_based
sourcestringrequired
Allowed:requestrequest_defaultlocation_profile
amountIncludesTaxbooleanrequired
locationRefstring
quotedAtstring<date-time>
finalizedAtstring<date-time>
lineEvidenceTaxLineEvidence[]required
Show properties
Array of TaxLineEvidence
sourceLineIdstringrequired
classificationKeystringrequired
classificationLabelstringrequired
classificationVersionintegerrequired
classificationMappingVersionintegerrequired
taxableAmountintegerrequired
taxAmountintegerrequired
taxBehaviorTaxBehaviorrequired
Allowed:exclusiveinclusivelocation_based
amountIncludesTaxbooleanrequired
jurisdictionEvidenceTaxJurisdictionEvidence[]required
Show properties
Array of TaxJurisdictionEvidence
jurisdictionTypestringrequired
jurisdictionNamestringrequired
taxableAmountintegerrequired
taxAmountintegerrequired
ratenumberrequired
failureTaxFailure
Show properties
codestringrequired
Allowed:tax_company_mapping_missingtax_classification_missingtax_classification_inactivetax_classification_unmappedtax_location_profile_missingaddress_missingunsupported_jurisdictiontax_auth_failedtax_timeouttax_uncertaintax_service_error
messagestringrequired
nextActionstringrequired
Allowed:configure_tax_companyconfigure_tax_classificationconfigure_tax_location_profilecollect_customer_addressretry_quoteretry_finalizeretry_reversereconcile_tax_statenone
replayedbooleanrequired
requestIdstringrequired
400

Bad request, including malformed JSON

errorobjectrequired
Show properties
codestringrequired
Allowed:bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_error
messagestringrequired
typestring
Allowed:api_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_error
paramstring

The request field that failed validation (dot path), when the error is field-attributable.

requestIdstring
docsUrlstring

Deep link to the errors guide section for this code.

detailsobject
401

Missing or invalid API key

errorobjectrequired
Show properties
codestringrequired
Allowed:bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_error
messagestringrequired
typestring
Allowed:api_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_error
paramstring

The request field that failed validation (dot path), when the error is field-attributable.

requestIdstring
docsUrlstring

Deep link to the errors guide section for this code.

detailsobject
409

Conflict, including idempotency body drift

errorobjectrequired
Show properties
codestringrequired
Allowed:bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_error
messagestringrequired
typestring
Allowed:api_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_error
paramstring

The request field that failed validation (dot path), when the error is field-attributable.

requestIdstring
docsUrlstring

Deep link to the errors guide section for this code.

detailsobject
422

Validation failed

errorobjectrequired
Show properties
codestringrequired
Allowed:bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_error
messagestringrequired
typestring
Allowed:api_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_error
paramstring

The request field that failed validation (dot path), when the error is field-attributable.

requestIdstring
docsUrlstring

Deep link to the errors guide section for this code.

detailsobject
429

API key rate limit exceeded

errorobjectrequired
Show properties
codestringrequired
Allowed:bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_error
messagestringrequired
typestring
Allowed:api_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_error
paramstring

The request field that failed validation (dot path), when the error is field-attributable.

requestIdstring
docsUrlstring

Deep link to the errors guide section for this code.

detailsobject
default

Error

errorobjectrequired
Show properties
codestringrequired
Allowed:bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_error
messagestringrequired
typestring
Allowed:api_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_error
paramstring

The request field that failed validation (dot path), when the error is field-attributable.

requestIdstring
docsUrlstring

Deep link to the errors guide section for this code.

detailsobject
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl "https://api.vortex.nyc/v1/invoices/{invoiceId}/tax/quote?environment=sandbox&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"customerTaxAddress":{"line1":"897 Broadway","city":"New York","region":"NY","postalCode":"10003","country":"US"},"taxBehaviorPolicy":{"behavior":"exclusive"},"requestedByRef":"internal-integration"}'
Response
{
  "data": {
    "tax": {
      "invoiceNumber": "string",
      "status": "not_required",
      "currency": "string",
      "subtotal": 0,
      "taxTotal": 0,
      "total": 0,
      "evidenceVersion": "string",
      "taxBehaviorPolicy": {
        "behavior": "exclusive",
        "source": "request",
        "amountIncludesTax": true,
        "locationRef": "string"
      },
      "quotedAt": "2019-08-24T14:15:22Z",
      "finalizedAt": "2019-08-24T14:15:22Z",
      "lineEvidence": [
        {
          "sourceLineId": "string",
          "classificationKey": "string",
          "classificationLabel": "string",
          "classificationVersion": 0,
          "classificationMappingVersion": 0,
          "taxableAmount": 0,
          "taxAmount": 0,
          "taxBehavior": "exclusive",
          "amountIncludesTax": true
        }
      ],
      "jurisdictionEvidence": [
        {
          "jurisdictionType": "string",
          "jurisdictionName": "string",
          "taxableAmount": 0,
          "taxAmount": 0,
          "rate": 0
        }
      ],
      "failure": {
        "code": "tax_company_mapping_missing",
        "message": "string",
        "nextAction": "configure_tax_company"
      }
    },
    "replayed": true
  },
  "requestId": "string"
}

Was this page helpful?