cURL
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 } } }
Get the current subscription status and plan details
true
Show data properties
"active"
"trialing"
"past_due"
"canceled"
"unpaid"
"free"
id
currentPeriodEnd
cancelAtPeriodEnd
curl https://api.bunship.com/api/v1/organizations/org_cld2abc123def456/billing \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."