Create a billing portal session
Creates a session and returns a URL into the payment provider’s hosted billing portal, where a customer manages cards, addresses and subscriptions — none of which Tied exposes as its own endpoints.
What is behind that URL is the provider’s. It can change without a change here, so redirect rather than embed, and do not store the URL. An account with no customer record at the provider returns a 422 with type: "portal_unavailable".
Authorizations
This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.
Path Parameters
The numeric ID of the account
Body
Response
Success
A URL into the payment provider's own hosted flow. What sits behind that URL is the provider's, not ours — its appearance, its steps and the shape of anything it returns can change without a change here. Treat the URL as short-lived and redirect to it rather than storing it.
Version of this payload's shape.
The account.
Where this answer came from and how current it is. Billing reads several systems, so every response says which one it used — treat state other than fresh as a reason to be careful with the numbers rather than a failure.