Create Billing Portal Session

View as Markdown
Create a billing portal session for a customer.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

account_idstringRequired

Request

This endpoint expects an object.
customer_idstringRequired
Customer ID
expires_in_hoursintegerOptional1-720Defaults to 1

Response

Successful Response
idstring
customer_idstring
billing_portal_urlstring
expires_in_hoursinteger
is_expiredboolean
created_atdatetime

Errors

422
Unprocessable Entity Error