Skip to main content
GET
https://api.bunship.com
/
api
/
v1
/
organizations
/
{orgId}
/
billing
Get Subscription
curl --request GET \
  --url https://api.bunship.com/api/v1/organizations/{orgId}/billing \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "plan": {
      "name": "Pro",
      "limits": {
        "members": 25,
        "apiRequests": 100000,
        "storage": 10737418240
      }
    },
    "status": "active",
    "subscription": {
      "id": "sub_1abc123",
      "currentPeriodEnd": "2024-02-15T10:00:00Z",
      "cancelAtPeriodEnd": false
    }
  }
}
Returns the organization’s current subscription status, active plan, and Stripe subscription details.

Auth

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

Path Parameters

orgId
string
required
Organization identifier.

Response

success
boolean
Always true on success.
data
object
{
  "success": true,
  "data": {
    "plan": {
      "name": "Pro",
      "limits": {
        "members": 25,
        "apiRequests": 100000,
        "storage": 10737418240
      }
    },
    "status": "active",
    "subscription": {
      "id": "sub_1abc123",
      "currentPeriodEnd": "2024-02-15T10:00:00Z",
      "cancelAtPeriodEnd": false
    }
  }
}

Example

curl https://api.bunship.com/api/v1/organizations/org_cld2abc123def456/billing \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."