Create a recurring document payable
POST
/v1/recurring-payablesAuthorization
AuthorizationBearer token · headerrequiredPublic API key bearer token.
Query parameters
environmentstringrequiredmerchantAccountIdstringrequiredHeader parameters
Idempotency-KeystringRequired for production-safe retries on mutating routes. Reusing a key with a different request body returns 409.
min length 1
Request body
requiredapplication/jsonsourceTypestringrequiredAllowed:
document_payment_fieldsourceIdstringrequireddocumentIdstringrequiredpaymentFieldIdstringrequiredcustomerExternalIdstringrequiredbillingAccountIdstringrequiredmerchantAccountIdstringcurrencystringrequiredISO 4217 alpha-3; only currencies processable on current rails are accepted
lineItemsPayableLineItem[]requiredtaxModestringrequiredAllowed:
not_taxabletaxable_requires_evidencetaxablebooleantaxBehaviorstringAllowed:
inclusiveexclusivetaxClassificationKeystringAllowed:
standard_taxablecollectionIntentstringrequiredAllowed:
manualfeePolicyFeePolicyrequiredAdopter fee policy (modeled, not settlement-executed). Structure passed through to Vortex Payments.
cadenceobjectrequiredShow propertiesHide properties
intervalstringrequiredAllowed:
weekmonthyearintervalCountintegerrequiredmin 1
endPolicyobjectrequiredstartAtstring<date-time>requiredmetadataMetadatarequiredResponses
200Success
dataobjectrequiredrequestIdstringrequired400Bad request, including malformed JSON
errorobjectrequiredShow propertiesHide properties
codestringrequiredAllowed:
bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredrequestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobject401Missing or invalid API key
errorobjectrequiredShow propertiesHide properties
codestringrequiredAllowed:
bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredrequestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobject409Conflict, including idempotency body drift
errorobjectrequiredShow propertiesHide properties
codestringrequiredAllowed:
bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredrequestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobject422Validation failed
errorobjectrequiredShow propertiesHide properties
codestringrequiredAllowed:
bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredrequestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobject429API key rate limit exceeded
errorobjectrequiredShow propertiesHide properties
codestringrequiredAllowed:
bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredrequestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectdefaultError
errorobjectrequiredShow propertiesHide properties
codestringrequiredAllowed:
bad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredrequestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectRequest
curl -X POST "https://api.vortex.nyc/v1/recurring-payables?environment=string&merchantAccountId=string" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"sourceType": "document_payment_field",
"sourceId": "string",
"documentId": "string",
"paymentFieldId": "string",
"customerExternalId": "string",
"billingAccountId": "string",
"merchantAccountId": "string",
"currency": "USD",
"lineItems": [
{}
],
"taxMode": "not_taxable",
"taxable": true,
"taxBehavior": "inclusive",
"taxClassificationKey": "standard_taxable",
"collectionIntent": "manual",
"feePolicy": {},
"cadence": {
"interval": "week",
"intervalCount": 0
},
"endPolicy": {},
"startAt": "2024-01-01T00:00:00Z",
"metadata": {}
}'const response = await fetch("https://api.vortex.nyc/v1/recurring-payables?environment=string&merchantAccountId=string", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"sourceType": "document_payment_field",
"sourceId": "string",
"documentId": "string",
"paymentFieldId": "string",
"customerExternalId": "string",
"billingAccountId": "string",
"merchantAccountId": "string",
"currency": "USD",
"lineItems": [
{}
],
"taxMode": "not_taxable",
"taxable": true,
"taxBehavior": "inclusive",
"taxClassificationKey": "standard_taxable",
"collectionIntent": "manual",
"feePolicy": {},
"cadence": {
"interval": "week",
"intervalCount": 0
},
"endPolicy": {},
"startAt": "2024-01-01T00:00:00Z",
"metadata": {}
})
});import requests
response = requests.post(
"https://api.vortex.nyc/v1/recurring-payables?environment=string&merchantAccountId=string",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"sourceType": "document_payment_field",
"sourceId": "string",
"documentId": "string",
"paymentFieldId": "string",
"customerExternalId": "string",
"billingAccountId": "string",
"merchantAccountId": "string",
"currency": "USD",
"lineItems": [
{}
],
"taxMode": "not_taxable",
"taxable": True,
"taxBehavior": "inclusive",
"taxClassificationKey": "standard_taxable",
"collectionIntent": "manual",
"feePolicy": {},
"cadence": {
"interval": "week",
"intervalCount": 0
},
"endPolicy": {},
"startAt": "2024-01-01T00:00:00Z",
"metadata": {}
},
)Response
{
"data": {},
"requestId": "string"
}{
"error": {
"code": "bad_request",
"message": "string",
"requestId": "string",
"docsUrl": "string",
"details": {}
}
}{
"error": {
"code": "bad_request",
"message": "string",
"requestId": "string",
"docsUrl": "string",
"details": {}
}
}{
"error": {
"code": "bad_request",
"message": "string",
"requestId": "string",
"docsUrl": "string",
"details": {}
}
}{
"error": {
"code": "bad_request",
"message": "string",
"requestId": "string",
"docsUrl": "string",
"details": {}
}
}{
"error": {
"code": "bad_request",
"message": "string",
"requestId": "string",
"docsUrl": "string",
"details": {}
}
}{
"error": {
"code": "bad_request",
"message": "string",
"requestId": "string",
"docsUrl": "string",
"details": {}
}
}