Skip to main content
POST
Create a portal session for a billing account

Authorizations

X-Api-Key
string
header
required

Path Parameters

billingAccountId
string
required

Body

application/json
redirectUrl
string
required

The URL to redirect to once a portal session is exited.

Example:

"https://dashboard.withampersand.com/the-current-page"

timeout
integer

The number of seconds before the portal session expires.

Example:

3600

Response

OK

url
string
required

The URL to redirect to in order to start the portal session.

Example:

"https://billing.portal.com/customer/session"