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.
/merchant-portal/{tail}tokenAPI key · queryrequiredHosted checkout/payment request token.
tailstringrequiredRemainder of the prefix-routed path. See route docs/contract for exact sub-operation.
application/jsonactionstringrequiredopen-dispute-portaldisputeIdstringactionstringrequiredopen-invoiceinvoiceIdstringrequiredactionstringrequiredopen-refundpaymentIdstringrequiredactionstringrequiredopen-onboardingactionstringrequiredshare-customer-portal-linkcustomerIdstringrequiredactionstringrequiredopen-update-payment-methodpaymentMethodIdstringrequiredactionstringrequiredopen-pay-mecurrencystringamountintegerlabelstringactionstringrequiredpause-subscriptionsubscriptionIdstringrequiredactionstringrequiredresume-subscriptionsubscriptionIdstringrequiredactionstringrequiredcancel-subscriptionsubscriptionIdstringrequiredcancelAtstringOptional schedule — a future cancelAt is a scheduled cancel, not terminal. Merchant-side authority; the customer portal door rejects this field.
actionstringrequiredcharge-customercustomerIdstringrequiredamountintegerrequiredcurrencystringpaymentMethodIdstringdescriptionstringattemptIdstringactionstringrequiredschedule-collection-retryinvoiceIdstringrequiredactionstringrequiredmint-collection-retry-linkinvoiceIdstringrequiredactionstringrequiredfinalize-invoiceinvoiceIdstringrequiredactionstringrequiredvoid-invoiceinvoiceIdstringrequiredreasonstringactionstringrequiredcollect-invoiceinvoiceIdstringrequiredpaymentMethodIdstringactionstringrequiredmark-invoice-past-dueinvoiceIdstringrequiredreasonstringactionstringrequiredmark-invoice-uncollectibleinvoiceIdstringrequiredreasonstringactionstringrequiredrefund-invoiceinvoiceIdstringrequiredpaymentIdstringOptional — defaults to the invoice's settled payment.
amountintegerOptional — defaults to the remaining refundable balance in minor units.
reasonstringactionstringrequiredcapture-paymentpaymentIntentIdstringrequiredactionstringrequiredcancel-paymentpaymentIntentIdstringrequiredactionstringrequiredrefund-paymentpaymentIdstringrequiredamountintegerOptional — defaults to the remaining refundable balance in minor units.
reasonstringactionstringrequiredlist-payment-refundspaymentIdstringrequiredactionstringrequiredupdate-payment-method-settingsacceptsAchbooleanrequiredactionstringrequiredcreate-customernamestringrequiredcurrencystringemailstring<email>externalCustomerRefstringactionstringrequiredcreate-invoicecustomerIdstringrequiredcurrencystringdueAtstring<date>Optional calendar due date — the door derives the billing account's netTermsDays from it.
issueNowbooleanFinalize the draft in the same transaction so the invoice is immediately collectible — this is the default; explicit false leaves a draft.
lineItemsobject[]requiredShow propertiesHide properties
objectdescriptionstringrequiredunitAmountintegerrequiredquantitynumberattemptIdstringactionstringrequiredcreate-quotecustomerIdstringrequiredcurrencystringorderTypestringone_offsubscription_creationsubscription_amendmentlineItemsobject[]requiredShow propertiesHide properties
objectdescriptionstringrequiredunitAmountintegerrequiredquantitynumberattemptIdstringactionstringrequiredcreate-payment-linkamountintegerrequiredcurrencystringcustomerIdstringcustomerEmailstring<email>labelstringattemptIdstringactionstringrequiredcustomer-detailcustomerIdstringrequiredactionstringrequiredinvoice-detailinvoiceIdstringrequiredactionstringrequiredorder-detailorderIdstringrequiredactionstringrequiredorder-form-detailorderFormIdstringrequiredactionstringrequiredapprove-quote-versionquoteVersionIdstringrequiredactionstringrequiredupdate-quote-versionquoteVersionIdstringrequiredcurrencystringtermsstringlineItemsobject[]requiredShow propertiesHide properties
objectpriceIdstringdescriptionstringrequiredunitAmountintegerrequiredquantitynumberactionstringrequiredvoid-quote-versionquoteVersionIdstringrequiredreasonstringmanualsupersededactionstringrequiredcreate-quote-versionquoteIdstringrequiredcurrencystringtermsstringlineItemsobject[]requiredShow propertiesHide properties
objectdescriptionstringrequiredunitAmountintegerrequiredquantitynumberactionstringrequiredrenew-quote-versionquoteVersionIdstringrequiredcurrencystringtermsstringlineItemsobject[]Show propertiesHide properties
objectdescriptionstringrequiredunitAmountintegerrequiredquantitynumberactionstringrequiredpreview-quote-versionquoteVersionIdstringrequiredactionstringrequireddownload-quote-version-pdfquoteVersionIdstringrequiredactionstringrequiredvoid-order-formorderFormIdstringrequiredreasonstringactionstringrequiredmint-order-form-linkorderFormIdstringrequiredactionstringrequiredexecute-orderorderIdstringrequiredattemptIdstringactionstringrequiredquote-detailquoteIdstringrequiredactionstringrequiredcreate-webhook-endpointdestinationUrlstring<uri>requiredPublic HTTPS endpoint — SSRF-checked at registration and again at delivery.
subscribedEventTypesstring[]required"", an exact event type, or a "prefix." wildcard.
descriptionstringactionstringrequireddisable-webhook-endpointendpointIdstringrequiredactionstringrequiredtest-webhook-endpointendpointIdstringrequiredeventTypestringOptional — defaults to the endpoint's first concrete subscription, else payment.created.
actionstringrequiredreplay-webhook-deliverydeliveryIdstringrequiredactionstringrequiredwebhook-endpoint-detailendpointIdstringrequiredactionstringrequiredcreate-productnamestringrequireddescriptionstringpriceobjectOptional first price, created in the same transaction — billingInterval present means fixed_recurring, absent means fixed_one_time.
Show propertiesHide properties
namestringunitAmountintegerrequiredcurrencystringbillingIntervalstringdayweekmonthyearattemptIdstringactionstringrequiredarchive-productproductIdstringrequiredactionstringrequiredactivate-productproductIdstringrequiredactionstringrequiredcreate-couponcodestringrequirednamestringrequireddescriptionstringdiscountTypestringrequiredpercentagefixed_amountpercentagenumberRequired when discountType is percentage.
amountintegerRequired when discountType is fixed_amount — integer minor units.
currencystringRequired when discountType is fixed_amount.
attemptIdstringactionstringrequiredcreate-credit-noteinvoiceIdstringrequiredreasonstringrequiredduplicated_chargeproduct_unsatisfactoryorder_changeorder_cancellationfraudulent_chargeotherlinesobject[]requiredShow propertiesHide properties
objectdescriptionstringrequiredamountintegerrequiredInteger minor units.
invoiceLineIdstringdescriptionstringattemptIdstringactionstringrequiredfinalize-tax-transactiontaxTransactionIdstringrequiredactionstringrequiredreverse-tax-transactiontaxTransactionIdstringrequiredactionstringrequiredupdate-tax-profiledisplayNamestringoriginAddressobjectrequiredShow propertiesHide properties
line1stringrequiredline2stringcitystringrequiredregionstringrequiredpostalCodestringrequiredcountrystringrequiredregistrationsobject[]requiredShow propertiesHide properties
objectcountrystringrequiredregionstringSuccess
dataobject | MerchantPortalSubscriptionActionResult | MerchantPortalInvoiceActionResult | MerchantPortalCollectionRetryResultrequiredShow propertiesHide properties
hostedInvoiceUrlstring<uri>requiredrefundPortalUrlstring<uri>requiredonboardingUrlstring<uri>requiredcustomerPortalUrlstring<uri>requiredupdatePaymentMethodUrlstring<uri>requiredpayMeUrlstring<uri>requiredcollectionRetryUrlstring<uri>requiredhostedOrderFormUrlstring<uri>requiredsubscriptionHostedPortalSubscriptionrequiredShow propertiesHide properties
subscriptionIdstringrequiredcustomerIdstringrequiredstatusstringrequiredcollectionModestringrequiredcurrentPeriodStartAtstring<date-time>currentPeriodEndAtstring<date-time>trialEndAtstring<date-time>cancelAtstring<date-time>canceledAtstring<date-time>endedAtstring<date-time>createdAtstring<date-time>requireditemsHostedPortalSubscriptionItem[]requiredShow propertiesHide properties
HostedPortalSubscriptionItemsubscriptionItemIdstringrequiredpriceIdstringrequiredquantityintegerrequiredcanCancelbooleanrequiredcanPausebooleanrequiredcanResumebooleanrequiredinvoiceobjectrequiredrefundIdstringrefundStatusstringpendingsucceededfailedpaymentobjectrequiredThe portal payment row after capture-payment / cancel-payment — carries status plus the canCapture/canCancel verb gates.
refundobjectrequiredThe portal refund row created by refund-payment.
refundsobject[]requiredThe payment's refund ledger — list-payment-refunds.
customerDetailobjectrequiredinvoiceDetailobjectrequiredcustomerobjectrequiredpaymentRequestIdstringrequiredcheckoutUrlstring<uri>requiredpaymentRequestIdstringrequiredstatusstringrequiredamountPaidintegerrequiredinvoiceIdstringokbooleanrequireddisputePortalUrlstring<uri>requireddisputeUrlstring<uri>messageHostedPortalPageMessagerequiredShow propertiesHide properties
tonestringrequirederrorsuccessinfotextstringrequiredretryIdstringrequiredinvoiceIdstringrequiredstatusstringrequiredretrySequenceintegerrequiredrunAtstring<date-time>requiredlastErrorstringexhaustedAtstring<date-time>createdAtstring<date-time>requiredendpointobjectrequiredThe portal webhook-endpoint row; create adds a one-time secret.
deliveryobjectrequiredThe portal webhook-delivery row (the test dispatch or the replayed clone).
productobjectrequiredpriceobjectcouponobjectrequiredcreditNoteobjectrequiredwebhookEndpointDetailobjectrequiredShow propertiesHide properties
endpointobjectrequireddeliveriesobject[]requiredCreated
dataobject | MerchantPortalSubscriptionActionResult | MerchantPortalInvoiceActionResult | MerchantPortalCollectionRetryResultrequiredShow propertiesHide properties
hostedInvoiceUrlstring<uri>requiredrefundPortalUrlstring<uri>requiredonboardingUrlstring<uri>requiredcustomerPortalUrlstring<uri>requiredupdatePaymentMethodUrlstring<uri>requiredpayMeUrlstring<uri>requiredcollectionRetryUrlstring<uri>requiredhostedOrderFormUrlstring<uri>requiredsubscriptionHostedPortalSubscriptionrequiredShow propertiesHide properties
subscriptionIdstringrequiredcustomerIdstringrequiredstatusstringrequiredcollectionModestringrequiredcurrentPeriodStartAtstring<date-time>currentPeriodEndAtstring<date-time>trialEndAtstring<date-time>cancelAtstring<date-time>canceledAtstring<date-time>endedAtstring<date-time>createdAtstring<date-time>requireditemsHostedPortalSubscriptionItem[]requiredShow propertiesHide properties
HostedPortalSubscriptionItemsubscriptionItemIdstringrequiredpriceIdstringrequiredquantityintegerrequiredcanCancelbooleanrequiredcanPausebooleanrequiredcanResumebooleanrequiredinvoiceobjectrequiredrefundIdstringrefundStatusstringpendingsucceededfailedpaymentobjectrequiredThe portal payment row after capture-payment / cancel-payment — carries status plus the canCapture/canCancel verb gates.
refundobjectrequiredThe portal refund row created by refund-payment.
refundsobject[]requiredThe payment's refund ledger — list-payment-refunds.
customerDetailobjectrequiredinvoiceDetailobjectrequiredcustomerobjectrequiredpaymentRequestIdstringrequiredcheckoutUrlstring<uri>requiredpaymentRequestIdstringrequiredstatusstringrequiredamountPaidintegerrequiredinvoiceIdstringokbooleanrequireddisputePortalUrlstring<uri>requireddisputeUrlstring<uri>messageHostedPortalPageMessagerequiredShow propertiesHide properties
tonestringrequirederrorsuccessinfotextstringrequiredretryIdstringrequiredinvoiceIdstringrequiredstatusstringrequiredretrySequenceintegerrequiredrunAtstring<date-time>requiredlastErrorstringexhaustedAtstring<date-time>createdAtstring<date-time>requiredendpointobjectrequiredThe portal webhook-endpoint row; create adds a one-time secret.
deliveryobjectrequiredThe portal webhook-delivery row (the test dispatch or the replayed clone).
productobjectrequiredpriceobjectcouponobjectrequiredcreditNoteobjectrequiredwebhookEndpointDetailobjectrequiredShow propertiesHide properties
endpointobjectrequireddeliveriesobject[]requiredBad request, including malformed JSON
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectMissing or invalid API key
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectAuthenticated key cannot access this resource or environment
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectRoute or scoped resource was not found
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectConflict, including idempotency body drift
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectValidation failed
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectAPI key rate limit exceeded
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectError
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobject