curl --request POST \
--url https://api.withorb.com/v1/customers/external_customer_id/{external_customer_id}/portal_sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expires_in_minutes": 60
}
'{
"id": "<string>",
"customer_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"url": "<string>"
}Creates a portal session for the customer, returning a short-lived URL that provides
authenticated access to the customer’s billing portal. The session expires after
expires_in_minutes (default 60, max 180). Creating a new session invalidates any
previously active session for that customer.
curl --request POST \
--url https://api.withorb.com/v1/customers/external_customer_id/{external_customer_id}/portal_sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expires_in_minutes": 60
}
'{
"id": "<string>",
"customer_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"url": "<string>"
}API Keys can be issued in the Orb's web application.
Duration in minutes until the portal session expires. Defaults to 60. Maximum 180.
1 <= x <= 180Was this page helpful?