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

POST /customer-portal/*

Hosted customer-portal action door — auth is the portal link token in the path. POST accepts CustomerPortalActionRequest and answers CustomerPortalActionResponse.

POST/customer-portal/{tail}
Authorization
tokenAPI key · queryrequired

Hosted checkout/payment request token.

Path parameters
tailstringrequired

Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.

Request body
requiredapplication/json
One of:
object
actionstringrequired
Allowed:cancel-subscription
subscriptionIdstringrequired
min length 1
object
actionstringrequired
Allowed:begin-add-payment-method
replacePaymentMethodIdstring
min length 1
object
actionstringrequired
Allowed:confirm-add-payment-method
paymentMethodIdstringrequired
min length 1
paymentMethodSetupSessionIdstringrequired
min length 1
replacePaymentMethodIdstring
min length 1
object
actionstringrequired
Allowed:schedule-collection-retry
invoiceIdstringrequired
min length 1
object
actionstringrequired
Allowed:mint-collection-retry-link
invoiceIdstringrequired
min length 1
object
actionstringrequired
Allowed:set-default-payment-method
paymentMethodIdstringrequired
min length 1
object
actionstringrequired
Allowed:update-subscription-items
subscriptionIdstringrequired
min length 1
itemsobject[]required
Show properties
Array of object
priceIdstringrequired
min length 1
quantityintegerrequired
min 1
object
actionstringrequired
Allowed:pause-subscription
subscriptionIdstringrequired
min length 1
object
actionstringrequired
Allowed:resume-subscription
subscriptionIdstringrequired
min length 1
Responses
200

Success

dataobjectrequired
Show properties
One of:
object
viewobjectrequired
messageobject
object
collectionRetryUrlstring<uri>required
object
paymentMethodSetupSessionIdstringrequired
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
403

Authenticated key cannot access this resource or environment

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
404

Route or scoped resource was not found

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/customer-portal/" \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action":"set-default-payment-method","paymentMethodId":"pm_123"}'
Response
{
  "data": {
    "view": {},
    "message": {}
  }
}

Was this page helpful?