Browse the API reference

Create Customer Portal Session

post/v1/billing/customer/{org_id}/portal

Part 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-Key header.
  • Bearer token in the Authorization header.

Path parameters

NameTypeDescription
org_idrequiredstringOrg 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

FieldTypeDescription
portal_urloptionalstring

Stripe Customer Portal URL where user can manage payment methods

billing_disabledoptionalboolean

True when billing is disabled on this deployment (no portal exists)

Default: false

StatusMeaning
400Invalid request
401Authentication required
403Access denied
404Resource not found
422Validation Error
429Rate limit exceeded
500Internal server error