Skip to main content
GET
https://api.bunship.com
/
api
/
v1
/
organizations
/
{orgId}
/
billing
/
portal
Billing Portal
curl --request GET \
  --url https://api.bunship.com/api/v1/organizations/{orgId}/billing/portal \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "url": "https://billing.stripe.com/p/session/bps_abc123..."
  }
}
Creates a Stripe Customer Portal session. The portal allows users to manage their subscription, update payment methods, view invoices, and cancel their plan.

Auth

Requires a valid Bearer token. User must be a member of the organization.

Path Parameters

orgId
string
required
Organization identifier.

Query Parameters

return_url
string
URL to redirect the user back to after leaving the portal. Must match the configured application origin.

Response

success
boolean
Always true on success.
data
object
{
  "success": true,
  "data": {
    "url": "https://billing.stripe.com/p/session/bps_abc123..."
  }
}

Example

curl "https://api.bunship.com/api/v1/organizations/org_cld2abc123def456/billing/portal?return_url=https://app.bunship.com/billing" \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."