Customer portal sessions
Create a customer portal session
POST
/portal_sessionsGives one customer a short-lived link to the customer portal: their plans, payment methods, invoices, refund requests and withdrawal, for every engine.
Headers
AuthorizationstringRequiredHTTP Basic auth: your API key as the password, with an empty username. See Authentication.
Parameters
customer_reference_idstringRequiredreturn_urlstringRequiredWhere the portal's back link sends the customer.
subscriptionstringOpens the portal on one subscription.
flowstringOpens the portal on one action for subscription.
localestringReturns
The portal session. Send the customer to url before expires_at.
idstringresourcestringurlstringreturn_urlstringcustomerstringcustomer_reference_idstringsubscriptionstring or nullflowstring or nullexpires_atstringcreatedstringtest_modebooleanErrors
400The request is invalid.
401The API key is missing or wrong.
403The key's permissions don't allow this route.
404No such object in this workspace and environment.
Was this page helpful?