Skip to main content

Create a Portal Session

POST 

/portal/sessions

Validates the application return_url before invoking the selected payment provider. A provider may require an existing Customer already owned by the Billing Account and may manage the final return behavior itself. Unsupported Portal capability fails with BILLING.PAYMENT_PROVIDER_CAPABILITY_UNSUPPORTED before Customer creation, provider I/O, or local state mutation. A provider that requires an existing owned Customer returns BILLING.PAYMENT_PROVIDER_CUSTOMER_REQUIRED when that binding has not been learned. Before provider I/O, the service verifies that every locally active owned Subscription belongs to the selected Customer; a missing or different Subscription Customer fails closed with BILLING.PAYMENT_PROVIDER_CUSTOMER_CONFLICT rather than opening an incomplete Portal. Customer ownership is never inferred from email. Returned URLs are short-lived and must not be cached.

Request

Responses

Created

Response Headers
    Location

    Portal URL for redirection