API REFERENCE
API: billing
Canonical routes for billing (from ApiRoutes).
Routes
| Method | Path | Auth / notes |
|---|---|---|
| GET | /tenants/{tenantId}/billing/plans | Bearer Cognito access token (billingPlans) |
| POST | /tenants/{tenantId}/billing/pricing | Bearer Cognito access token (billingPricing) |
| GET | /tenants/{tenantId}/billing | Bearer Cognito access token (billingCurrent) |
| POST | /tenants/{tenantId}/checkout | Bearer Cognito access token (tenantCheckout) |
| POST | /tenants/{tenantId}/billing/checkout | Bearer Cognito access token (billingCheckout) |
| PATCH | /tenants/{tenantId}/billing/features | Bearer Cognito access token (billingUpdateFeatures) |
| POST | /tenants/{tenantId}/billing/features/{featureId}/cancel | Bearer Cognito access token (billingCancelFeature) |
| GET | /tenants/{tenantId}/billing/invoices | Bearer Cognito access token (billingInvoices) |
Example
GET https://api.startupcore.com/tenants/{tenantId}/billing/plans
Errors
401 UNAUTHORIZED, 403 FORBIDDEN, 403 FEATURE_NOT_ENTITLED, 404 NOT_FOUND, 400 VALIDATION_ERROR.