Open a customer's billing portal
POST
Creates a temporary Stripe portal URL for viewing invoices and updating billing details and payment methods. The selected environment needs a configured Stripe billing portal, and the customer needs an existing Stripe billing profile in that environment. Requires the subscriptions write permission.
bearerAuthheader
AuthorizationBearer <token>Environment API key or OAuth access token. OAuth requests select context with X-Orbyte-Environment or X-Orbyte-Organization when required by the operation.
X-Orbyte-Environment?stringRequired for environment-scoped OAuth operations. API keys remain bound to their own environment.
Length
1 <= lengthapplication/json- body
identity*stringLength
1 <= length <= 128returnUrl*stringFormat
uriLength
length <= 2048Temporary billing portal session
application/json- response
url*stringFormat
uricurl -X POST 'https://api.orbytelabs.com/v1/subscriptions/portal' \ -H 'Content-Type: application/json' \ -d '{ "identity": "string", "returnUrl": "http://example.com"}'Example Response
{ "url": "http://example.com"}