POST
/
billingAccounts
/
{billingAccountId}
/
portalSession
curl --request POST \
  --url https://api.withampersand.com/v1/billingAccounts/{billingAccountId}/portalSession \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "redirectUrl": "https://dashboard.withampersand.com/the-current-page",
  "timeout": 3600
}'
{
  "url": "https://billing.portal.com/customer/session"
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

billingAccountId
string
required

Body

application/json

Response

200
application/json
OK

The response is of type object.