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

POST /merchant-portal/*

Hosted merchant-portal action door — auth is the portal link token in the path. POST accepts the declared action union (MerchantPortalActionRequest) and answers the declared result envelope (MerchantPortalActionResponse); a bare { ok: true } or ad-hoc field is a contract violation.

POST/merchant-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:open-dispute-portal
disputeIdstring
min length 1
object
actionstringrequired
Allowed:open-invoice
invoiceIdstringrequired
min length 1
object
actionstringrequired
Allowed:open-refund
paymentIdstringrequired
min length 1
object
actionstringrequired
Allowed:open-onboarding
object
actionstringrequired
Allowed:share-customer-portal-link
customerIdstringrequired
min length 1
object
actionstringrequired
Allowed:open-update-payment-method
paymentMethodIdstringrequired
min length 1
object
actionstringrequired
Allowed:open-pay-me
currencystring
min length 1 · default: "USD"
amountinteger
min 1
labelstring
min length 1 · max length 80
object
actionstringrequired
Allowed:pause-subscription
subscriptionIdstringrequired
min length 1
object
actionstringrequired
Allowed:resume-subscription
subscriptionIdstringrequired
min length 1
object
actionstringrequired
Allowed:cancel-subscription
subscriptionIdstringrequired
min length 1
cancelAtstring

Optional schedule — a future cancelAt is a scheduled cancel, not terminal. Merchant-side authority; the customer portal door rejects this field.

min length 1
object
actionstringrequired
Allowed:charge-customer
customerIdstringrequired
min length 1
amountintegerrequired
min 1
currencystring
min length 1 · default: "USD"
paymentMethodIdstring
min length 1
descriptionstring
min length 1 · max length 120
attemptIdstring
min length 1 · max length 80
object
actionstringrequired
Allowed:schedule-collection-retry
invoiceIdstringrequired
min length 1
object
actionstringrequired
Allowed:mint-collection-retry-link
invoiceIdstringrequired
min length 1
object
actionstringrequired
Allowed:finalize-invoice
invoiceIdstringrequired
min length 1
object
actionstringrequired
Allowed:void-invoice
invoiceIdstringrequired
min length 1
reasonstring
min length 1
object
actionstringrequired
Allowed:collect-invoice
invoiceIdstringrequired
min length 1
paymentMethodIdstring
min length 1
object
actionstringrequired
Allowed:mark-invoice-past-due
invoiceIdstringrequired
min length 1
reasonstring
min length 1
object
actionstringrequired
Allowed:mark-invoice-uncollectible
invoiceIdstringrequired
min length 1
reasonstring
min length 1
object
actionstringrequired
Allowed:refund-invoice
invoiceIdstringrequired
min length 1
paymentIdstring

Optional — defaults to the invoice's settled payment.

min length 1
amountinteger

Optional — defaults to the remaining refundable balance in minor units.

min 1
reasonstring
min length 1
object
actionstringrequired
Allowed:capture-payment
paymentIntentIdstringrequired
min length 1
object
actionstringrequired
Allowed:cancel-payment
paymentIntentIdstringrequired
min length 1
object
actionstringrequired
Allowed:refund-payment
paymentIdstringrequired
min length 1
amountinteger

Optional — defaults to the remaining refundable balance in minor units.

min 1
reasonstring
min length 1
object
actionstringrequired
Allowed:list-payment-refunds
paymentIdstringrequired
min length 1
object
actionstringrequired
Allowed:update-payment-method-settings
acceptsAchbooleanrequired
object
actionstringrequired
Allowed:create-customer
namestringrequired
min length 1
currencystring
min length 1 · default: "USD"
emailstring<email>
externalCustomerRefstring
min length 1
object
actionstringrequired
Allowed:create-invoice
customerIdstringrequired
min length 1
currencystring
min length 1 · default: "USD"
dueAtstring<date>

Optional calendar due date — the door derives the billing account's netTermsDays from it.

issueNowboolean

Finalize the draft in the same transaction so the invoice is immediately collectible — this is the default; explicit false leaves a draft.

lineItemsobject[]required
min items 1 · max items 50
Show properties
Array of object
descriptionstringrequired
min length 1 · max length 200
unitAmountintegerrequired
min 1
quantitynumber
min 1
attemptIdstring
min length 1 · max length 80
object
actionstringrequired
Allowed:create-quote
customerIdstringrequired
min length 1
currencystring
min length 1 · default: "USD"
orderTypestring
default: "one_off"
Allowed:one_offsubscription_creationsubscription_amendment
lineItemsobject[]required
min items 1 · max items 50
Show properties
Array of object
descriptionstringrequired
min length 1 · max length 200
unitAmountintegerrequired
min 1
quantitynumber
min 1
attemptIdstring
min length 1 · max length 80
object
actionstringrequired
Allowed:create-payment-link
amountintegerrequired
min 1
currencystring
min length 1 · default: "USD"
customerIdstring
min length 1
customerEmailstring<email>
labelstring
min length 1 · max length 120
attemptIdstring
min length 1 · max length 80
object
actionstringrequired
Allowed:customer-detail
customerIdstringrequired
min length 1
object
actionstringrequired
Allowed:invoice-detail
invoiceIdstringrequired
min length 1
object
actionstringrequired
Allowed:order-detail
orderIdstringrequired
min length 1
object
actionstringrequired
Allowed:order-form-detail
orderFormIdstringrequired
min length 1
object
actionstringrequired
Allowed:approve-quote-version
quoteVersionIdstringrequired
min length 1
object
actionstringrequired
Allowed:update-quote-version
quoteVersionIdstringrequired
min length 1
currencystring
min length 1
termsstring
max length 5000
lineItemsobject[]required
min items 1 · max items 50
Show properties
Array of object
priceIdstring
min length 1
descriptionstringrequired
min length 1 · max length 200
unitAmountintegerrequired
min 1
quantitynumber
min 1
object
actionstringrequired
Allowed:void-quote-version
quoteVersionIdstringrequired
min length 1
reasonstring
default: "manual"
Allowed:manualsuperseded
object
actionstringrequired
Allowed:create-quote-version
quoteIdstringrequired
min length 1
currencystring
min length 1
termsstring
max length 5000
lineItemsobject[]required
min items 1 · max items 50
Show properties
Array of object
descriptionstringrequired
min length 1 · max length 200
unitAmountintegerrequired
min 1
quantitynumber
min 1
object
actionstringrequired
Allowed:renew-quote-version
quoteVersionIdstringrequired
min length 1
currencystring
min length 1
termsstring
max length 5000
lineItemsobject[]
min items 1 · max items 50
Show properties
Array of object
descriptionstringrequired
min length 1 · max length 200
unitAmountintegerrequired
min 1
quantitynumber
min 1
object
actionstringrequired
Allowed:preview-quote-version
quoteVersionIdstringrequired
min length 1
object
actionstringrequired
Allowed:download-quote-version-pdf
quoteVersionIdstringrequired
min length 1
object
actionstringrequired
Allowed:void-order-form
orderFormIdstringrequired
min length 1
reasonstring
min length 1
object
actionstringrequired
Allowed:mint-order-form-link
orderFormIdstringrequired
min length 1
object
actionstringrequired
Allowed:execute-order
orderIdstringrequired
min length 1
attemptIdstring
min length 1 · max length 80 · matches ^[A-Za-z0-9_-]+$
object
actionstringrequired
Allowed:quote-detail
quoteIdstringrequired
min length 1
object
actionstringrequired
Allowed:create-webhook-endpoint
destinationUrlstring<uri>required

Public HTTPS endpoint — SSRF-checked at registration and again at delivery.

subscribedEventTypesstring[]required

"", an exact event type, or a "prefix." wildcard.

min items 1
descriptionstring
min length 1
object
actionstringrequired
Allowed:disable-webhook-endpoint
endpointIdstringrequired
min length 1
object
actionstringrequired
Allowed:test-webhook-endpoint
endpointIdstringrequired
min length 1
eventTypestring

Optional — defaults to the endpoint's first concrete subscription, else payment.created.

min length 1
object
actionstringrequired
Allowed:replay-webhook-delivery
deliveryIdstringrequired
min length 1
object
actionstringrequired
Allowed:webhook-endpoint-detail
endpointIdstringrequired
min length 1
object
actionstringrequired
Allowed:create-product
namestringrequired
min length 1
descriptionstring
min length 1
priceobject

Optional first price, created in the same transaction — billingInterval present means fixed_recurring, absent means fixed_one_time.

Show properties
namestring
min length 1
unitAmountintegerrequired
min 1
currencystring
min length 1 · default: "USD"
billingIntervalstring
Allowed:dayweekmonthyear
attemptIdstring
min length 1 · max length 80
object
actionstringrequired
Allowed:archive-product
productIdstringrequired
min length 1
object
actionstringrequired
Allowed:activate-product
productIdstringrequired
min length 1
object
actionstringrequired
Allowed:create-coupon
codestringrequired
min length 1 · max length 64 · matches ^[A-Za-z0-9_-]+$
namestringrequired
min length 1 · max length 120
descriptionstring
min length 1 · max length 500
discountTypestringrequired
Allowed:percentagefixed_amount
percentagenumber

Required when discountType is percentage.

max 100
amountinteger

Required when discountType is fixed_amount — integer minor units.

min 1
currencystring

Required when discountType is fixed_amount.

min length 1
attemptIdstring
min length 1 · max length 80
object
actionstringrequired
Allowed:create-credit-note
invoiceIdstringrequired
min length 1
reasonstringrequired
Allowed:duplicated_chargeproduct_unsatisfactoryorder_changeorder_cancellationfraudulent_chargeother
linesobject[]required
min items 1 · max items 50
Show properties
Array of object
descriptionstringrequired
min length 1 · max length 200
amountintegerrequired

Integer minor units.

min 1
invoiceLineIdstring
min length 1
descriptionstring
min length 1 · max length 500
attemptIdstring
min length 1 · max length 80
object
actionstringrequired
Allowed:finalize-tax-transaction
taxTransactionIdstringrequired
min length 1
object
actionstringrequired
Allowed:reverse-tax-transaction
taxTransactionIdstringrequired
min length 1
object
actionstringrequired
Allowed:update-tax-profile
displayNamestring
min length 1
originAddressobjectrequired
Show properties
line1stringrequired
min length 1
line2string
min length 1
citystringrequired
min length 1
regionstringrequired
min length 1
postalCodestringrequired
min length 1
countrystringrequired
min length 1
registrationsobject[]required
min items 1
Show properties
Array of object
countrystringrequired
min length 1
regionstring
min length 1
Responses
200

Success

dataobject | MerchantPortalSubscriptionActionResult | MerchantPortalInvoiceActionResult | MerchantPortalCollectionRetryResultrequired
Show properties
One of:
object
hostedInvoiceUrlstring<uri>required
object
refundPortalUrlstring<uri>required
object
onboardingUrlstring<uri>required
object
customerPortalUrlstring<uri>required
object
updatePaymentMethodUrlstring<uri>required
object
payMeUrlstring<uri>required
object
collectionRetryUrlstring<uri>required
object
hostedOrderFormUrlstring<uri>required
MerchantPortalSubscriptionActionResult
subscriptionHostedPortalSubscriptionrequired
Show properties
subscriptionIdstringrequired
customerIdstringrequired
statusstringrequired
collectionModestringrequired
currentPeriodStartAtstring<date-time>
currentPeriodEndAtstring<date-time>
trialEndAtstring<date-time>
cancelAtstring<date-time>
canceledAtstring<date-time>
endedAtstring<date-time>
createdAtstring<date-time>required
itemsHostedPortalSubscriptionItem[]required
Show properties
Array of HostedPortalSubscriptionItem
subscriptionItemIdstringrequired
priceIdstringrequired
quantityintegerrequired
canCancelbooleanrequired
canPausebooleanrequired
canResumebooleanrequired
MerchantPortalInvoiceActionResult
invoiceobjectrequired
refundIdstring
refundStatusstring
Allowed:pendingsucceededfailed
object
paymentobjectrequired

The portal payment row after capture-payment / cancel-payment — carries status plus the canCapture/canCancel verb gates.

object
refundobjectrequired

The portal refund row created by refund-payment.

object
refundsobject[]required

The payment's refund ledger — list-payment-refunds.

object
customerDetailobjectrequired
object
invoiceDetailobjectrequired
object
customerobjectrequired
object
paymentRequestIdstringrequired
checkoutUrlstring<uri>required
object
paymentRequestIdstringrequired
statusstringrequired
amountPaidintegerrequired
min 0
invoiceIdstring
object
okbooleanrequired
object
disputePortalUrlstring<uri>required
disputeUrlstring<uri>
messageHostedPortalPageMessagerequired
Show properties
tonestringrequired
Allowed:errorsuccessinfo
textstringrequired
MerchantPortalCollectionRetryResult
retryIdstringrequired
invoiceIdstringrequired
statusstringrequired
retrySequenceintegerrequired
runAtstring<date-time>required
lastErrorstring
exhaustedAtstring<date-time>
createdAtstring<date-time>required
object
endpointobjectrequired

The portal webhook-endpoint row; create adds a one-time secret.

object
deliveryobjectrequired

The portal webhook-delivery row (the test dispatch or the replayed clone).

object
productobjectrequired
priceobject
object
couponobjectrequired
object
creditNoteobjectrequired
object
webhookEndpointDetailobjectrequired
Show properties
endpointobjectrequired
deliveriesobject[]required
201

Created

dataobject | MerchantPortalSubscriptionActionResult | MerchantPortalInvoiceActionResult | MerchantPortalCollectionRetryResultrequired
Show properties
One of:
object
hostedInvoiceUrlstring<uri>required
object
refundPortalUrlstring<uri>required
object
onboardingUrlstring<uri>required
object
customerPortalUrlstring<uri>required
object
updatePaymentMethodUrlstring<uri>required
object
payMeUrlstring<uri>required
object
collectionRetryUrlstring<uri>required
object
hostedOrderFormUrlstring<uri>required
MerchantPortalSubscriptionActionResult
subscriptionHostedPortalSubscriptionrequired
Show properties
subscriptionIdstringrequired
customerIdstringrequired
statusstringrequired
collectionModestringrequired
currentPeriodStartAtstring<date-time>
currentPeriodEndAtstring<date-time>
trialEndAtstring<date-time>
cancelAtstring<date-time>
canceledAtstring<date-time>
endedAtstring<date-time>
createdAtstring<date-time>required
itemsHostedPortalSubscriptionItem[]required
Show properties
Array of HostedPortalSubscriptionItem
subscriptionItemIdstringrequired
priceIdstringrequired
quantityintegerrequired
canCancelbooleanrequired
canPausebooleanrequired
canResumebooleanrequired
MerchantPortalInvoiceActionResult
invoiceobjectrequired
refundIdstring
refundStatusstring
Allowed:pendingsucceededfailed
object
paymentobjectrequired

The portal payment row after capture-payment / cancel-payment — carries status plus the canCapture/canCancel verb gates.

object
refundobjectrequired

The portal refund row created by refund-payment.

object
refundsobject[]required

The payment's refund ledger — list-payment-refunds.

object
customerDetailobjectrequired
object
invoiceDetailobjectrequired
object
customerobjectrequired
object
paymentRequestIdstringrequired
checkoutUrlstring<uri>required
object
paymentRequestIdstringrequired
statusstringrequired
amountPaidintegerrequired
min 0
invoiceIdstring
object
okbooleanrequired
object
disputePortalUrlstring<uri>required
disputeUrlstring<uri>
messageHostedPortalPageMessagerequired
Show properties
tonestringrequired
Allowed:errorsuccessinfo
textstringrequired
MerchantPortalCollectionRetryResult
retryIdstringrequired
invoiceIdstringrequired
statusstringrequired
retrySequenceintegerrequired
runAtstring<date-time>required
lastErrorstring
exhaustedAtstring<date-time>
createdAtstring<date-time>required
object
endpointobjectrequired

The portal webhook-endpoint row; create adds a one-time secret.

object
deliveryobjectrequired

The portal webhook-delivery row (the test dispatch or the replayed clone).

object
productobjectrequired
priceobject
object
couponobjectrequired
object
creditNoteobjectrequired
object
webhookEndpointDetailobjectrequired
Show properties
endpointobjectrequired
deliveriesobject[]required
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/merchant-portal/" \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action":"pause-subscription","subscriptionId":"sub_123"}'
Response
{
  "data": {
    "hostedInvoiceUrl": "http://example.com"
  }
}

Was this page helpful?