curl --request GET \
--url https://api.gigstack.io/v2/teams/{id}/billing/history \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gigstack.io/v2/teams/{id}/billing/history', 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/history"
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",
"data": [
{
"id": "<string>",
"number": "<string>",
"status": "<string>",
"currency": "<string>",
"hosted_invoice_url": "<string>",
"invoice_pdf": "<string>",
"created_at": 123,
"amount_due": 123,
"amount_paid": 123,
"amount_remaining": 123,
"period_start": 123,
"period_end": 123
}
],
"has_more": true,
"cursor": "<string>"
},
"timestamp": 123
}List account billing invoices
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. Use data.cursor for the next page. Cursor is scoped to the billing account, provider environment and customer. Invoice dates are Unix seconds; amounts are minor units. Hosted URLs are sensitive handoffs.
curl --request GET \
--url https://api.gigstack.io/v2/teams/{id}/billing/history \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gigstack.io/v2/teams/{id}/billing/history', 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/history"
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",
"data": [
{
"id": "<string>",
"number": "<string>",
"status": "<string>",
"currency": "<string>",
"hosted_invoice_url": "<string>",
"invoice_pdf": "<string>",
"created_at": 123,
"amount_due": 123,
"amount_paid": 123,
"amount_remaining": 123,
"period_start": 123,
"period_end": 123
}
],
"has_more": true,
"cursor": "<string>"
},
"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.
Path Parameters
Query Parameters
1 <= x <= 1001 - 1000