Create Customer Portal Session
post
/v1/billing/customer/{org_id}/portalPart of Billing.
Returns a Stripe Customer Portal URL for managing payment methods and billing history. Requires org owner role.
Authentication
Authenticate in any one of these ways — not all of them:
- API key in the
X-API-Keyheader. - Bearer token in the
Authorizationheader.
Path parameters
| Name | Type | Description |
|---|---|---|
org_idrequired | string | Org Id |
Example request
curl
curl -X POST "https://api.robosystems.ai/v1/billing/customer/{org_id}/portal" \
-H "X-API-Key: $ROBOSYSTEMS_API_KEY"Responses
200 Successful Response
| Field | Type | Description |
|---|---|---|
portal_urloptional | string | Stripe Customer Portal URL where user can manage payment methods |
billing_disabledoptional | boolean | True when billing is disabled on this deployment (no portal exists) Default: |
| Status | Meaning |
|---|---|
| 400 | Invalid request |
| 401 | Authentication required |
| 403 | Access denied |
| 404 | Resource not found |
| 422 | Validation Error |
| 429 | Rate limit exceeded |
| 500 | Internal server error |