Skip to Content
Orbyte Labs

Open a customer's billing portal

POST
/v1/subscriptions/portal

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.

Authorization

bearerAuth
headerAuthorizationBearer <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.

Header Parameters

X-Orbyte-Environment?string

Required for environment-scoped OAuth operations. API keys remain bound to their own environment.

Length1 <= length

Request Body

application/json
  1. body
identity*string
Length1 <= length <= 128
returnUrl*string
Formaturi
Lengthlength <= 2048

Response Body

Temporary billing portal session

application/json
  1. response
url*string
Formaturi
Example Request
curl -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"}