curl --request GET \
--url https://api.gigstack.io/v2/teams/{id}/billing/summary \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gigstack.io/v2/teams/{id}/billing/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gigstack.io/v2/teams/{id}/billing/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"team_id": "<string>",
"billing_account_id": "<string>",
"effect_scope": "billing_account_shared",
"provider_environment": "sandbox",
"can_manage": true,
"customer_id": "<string>",
"plan": {
"id": "<string>",
"name": "<string>",
"pricing_version": "<string>",
"subscription_id": "<string>",
"status": "<string>",
"billing_cycle": "<string>",
"cancellation_date": 123,
"features": {
"includedDocuments": "<string>",
"seats": "<string>",
"maxClients": "<string>",
"selfBillingPortal": "<string>",
"maxIntegrations": "<string>",
"customerPortal": "<string>",
"technicalSupport": "<string>",
"apiAndWebhooks": "<string>",
"customDomain": "<string>",
"multipleIssuerAccounts": "<string>",
"analyticsAndReports": "<string>",
"dedicatedSupportChannel": "<string>",
"supplierMode": "<string>",
"erps": "<string>"
}
},
"usage": {
"used_documents": 123,
"included_documents": 123,
"credits": 123,
"current_period_start": 123,
"current_period_end": 123
},
"subscriptions": [
{
"id": "<string>",
"status": "<string>",
"plan_id": "<string>",
"billing_cycle": "<string>",
"currency": "<string>",
"current_period_start": 123,
"current_period_end": 123,
"cancel_at": 123,
"trial_end": 123,
"cancel_at_period_end": true,
"items": [
{
"id": "<string>",
"price_id": "<string>",
"lookup_key": "<string>",
"unit_amount": 123,
"quantity": 123,
"interval": "<string>",
"usage_type": "<string>",
"current_period_end": 123
}
]
}
],
"subscriptions_has_more": true,
"retention_offer": {
"eligible": true,
"reason": "not_v3",
"used_at": 123
},
"cancellation": {
"requested_at": 123,
"reason": "<string>",
"cancel_at": 123,
"resumed_at": 123
},
"connect": {
"state": "off",
"ends_at": 123,
"staff_managed": true,
"free": true,
"subscription_item_id": "<string>"
},
"credits": {
"period": "<string>",
"period_start": 123,
"period_end": 123,
"credit_value_mxn": 123,
"given": 123,
"used": 123,
"left": 123,
"welcome": {
"given": 123,
"used": 123,
"left": 123,
"expires_at": 123,
"lapsed": true
},
"gifts": {
"given": 123,
"used": 123,
"left": 123,
"items": [
{
"id": "<string>",
"given": 123,
"used": 123,
"left": 123,
"until_period": "<string>"
}
]
},
"free_units": [
{
"unit": "<string>",
"included": 123,
"used": 123
}
],
"free_documents": {
"included": 123,
"used": 123,
"units": [
"<string>"
]
},
"usage_credits": 123,
"charge_mxn": 123,
"reported_mxn": 123,
"threshold": {
"amount_mxn": 123,
"source": "account",
"remaining_mxn": 123
}
}
},
"timestamp": 123
}Read account subscription and usage
Requires a verified Firebase or signed personal MCP user with current unblocked team membership. Team API keys and OAuth tokens cannot act as their creator. Writes and operation readback/recovery require a current billing-account administrator. Effects are shared by the billing account. Staging always uses sandbox billing; credential livemode does not choose billing environment. Subscriptions are bounded to 100 with subscriptions_has_more. Null usage means unavailable, not zero.
curl --request GET \
--url https://api.gigstack.io/v2/teams/{id}/billing/summary \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gigstack.io/v2/teams/{id}/billing/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gigstack.io/v2/teams/{id}/billing/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"team_id": "<string>",
"billing_account_id": "<string>",
"effect_scope": "billing_account_shared",
"provider_environment": "sandbox",
"can_manage": true,
"customer_id": "<string>",
"plan": {
"id": "<string>",
"name": "<string>",
"pricing_version": "<string>",
"subscription_id": "<string>",
"status": "<string>",
"billing_cycle": "<string>",
"cancellation_date": 123,
"features": {
"includedDocuments": "<string>",
"seats": "<string>",
"maxClients": "<string>",
"selfBillingPortal": "<string>",
"maxIntegrations": "<string>",
"customerPortal": "<string>",
"technicalSupport": "<string>",
"apiAndWebhooks": "<string>",
"customDomain": "<string>",
"multipleIssuerAccounts": "<string>",
"analyticsAndReports": "<string>",
"dedicatedSupportChannel": "<string>",
"supplierMode": "<string>",
"erps": "<string>"
}
},
"usage": {
"used_documents": 123,
"included_documents": 123,
"credits": 123,
"current_period_start": 123,
"current_period_end": 123
},
"subscriptions": [
{
"id": "<string>",
"status": "<string>",
"plan_id": "<string>",
"billing_cycle": "<string>",
"currency": "<string>",
"current_period_start": 123,
"current_period_end": 123,
"cancel_at": 123,
"trial_end": 123,
"cancel_at_period_end": true,
"items": [
{
"id": "<string>",
"price_id": "<string>",
"lookup_key": "<string>",
"unit_amount": 123,
"quantity": 123,
"interval": "<string>",
"usage_type": "<string>",
"current_period_end": 123
}
]
}
],
"subscriptions_has_more": true,
"retention_offer": {
"eligible": true,
"reason": "not_v3",
"used_at": 123
},
"cancellation": {
"requested_at": 123,
"reason": "<string>",
"cancel_at": 123,
"resumed_at": 123
},
"connect": {
"state": "off",
"ends_at": 123,
"staff_managed": true,
"free": true,
"subscription_item_id": "<string>"
},
"credits": {
"period": "<string>",
"period_start": 123,
"period_end": 123,
"credit_value_mxn": 123,
"given": 123,
"used": 123,
"left": 123,
"welcome": {
"given": 123,
"used": 123,
"left": 123,
"expires_at": 123,
"lapsed": true
},
"gifts": {
"given": 123,
"used": 123,
"left": 123,
"items": [
{
"id": "<string>",
"given": 123,
"used": 123,
"left": 123,
"until_period": "<string>"
}
]
},
"free_units": [
{
"unit": "<string>",
"included": 123,
"used": 123
}
],
"free_documents": {
"included": 123,
"used": 123,
"units": [
"<string>"
]
},
"usage_credits": 123,
"charge_mxn": 123,
"reported_mxn": 123,
"threshold": {
"amount_mxn": 123,
"source": "account",
"remaining_mxn": 123
}
}
},
"timestamp": 123
}Authorizations
Authentication Method: HTTP Bearer token.
The runtime requires the literal Bearer prefix — a bare token in the
Authorization header is rejected with 401 unauthorized.
Header Format: Authorization: Bearer YOUR_API_KEY
Your API key is a JWT. Live keys operate on live data (livemode: true);
test keys operate on isolated test data (livemode: false).
Get your key at: app.gigstack.pro/settings?tab=api
Errors: credential failures are answered by the authentication layer with a raw
{ "message": … } body, not the standardized envelope — 401 for a missing, malformed or
expired token, 403 for a revoked key or a plan without API access. See the Unauthorized
and AuthForbidden responses.