A usage balance represents the amount of usage consumed from an Allowance for a given Subscription in a certain Period.
Type of object is always usageBalance.
usageBalance Unique identifier for the usage balance.
"ubl_0V9n0zo90CE0NuvcsN0j88"Unique identifier of the Subscription the usage balance is related to.
"sub_0SNlurA049MEWV2gSfSxi00xlPIi"{"type":"subscriptionPeriod","subscriptionPeriod":4,"subscriptionAddon":null},{"type":"subscriptionAddon","subscriptionPeriod":null,"subscriptionAddon":"sad_0SNlurA049MEWV2UNWPbDfW5B40U"}The entity type providing the allowance.
subscriptionPeriod subscriptionAddon When the allowance is provided by the subscription's plan, the subscription period this usage balance is bound by.
4When the allowance is provided by a Subscription Add-on, the subscription add-on this usage balance is provided by.
"sad_0SNlurA049MEWV2UNWPbDfW5B40U"The unit the usage is counted in.
bytes seconds messages The amount of usage consumed, counted in unit.
230The amount of usage permitted by the associated allowance counted in unit. A value of null indicates an unlimited allowance.
500The amount remaining that can still be consumed, counted in unit. A value of null indicates an unlimited allowance.
270The percentage of limit that has been used, expressed as an integer between 0 and 100. A value of null indicates an unlimited allowance.
46The percentage of limit that has not been used, expressed as an integer between 0 and 100. A value of null indicates an unlimited allowance.
54Timestamp representing the beginning of this usage balance's validity. A value of null indicates a Balance that is not yet active, for example when a Subscription is still pending.
"2026-01-03T13:41:24Z"Timestamp representing the end of this usage balance's validity. A value of null indicates a Balance that is not yet active, for example when a Subscription is still pending.
"2026-02-03T13:41:24Z"{
"object": "usageBalance",
"id": "ubl_0V9n0zo90CE0NuvcsN0j88",
"allowance": {
"object": "allowance",
"id": "alw_0SNlurA049MEWV3OMTRrGKbd99GH",
"name": "Roaming data in Europe",
"type": "data",
"coverage": {
"object": "coverage",
"id": "de",
"countries": [
"DE",
"FR",
"US"
],
"name": "Europe"
},
"limit": 500,
"unit": "bytes",
"priority": 1
},
"subscription": "sub_0SNlurA049MEWV2gSfSxi00xlPIi",
"source": {
"type": "subscriptionPeriod",
"subscriptionPeriod": 4,
"subscriptionAddon": null
},
"unit": "bytes",
"used": 230,
"limit": 500,
"remaining": 270,
"usedPercent": 46,
"remainingPercent": 54,
"usableFrom": "2026-01-03T13:41:24Z",
"usableUntil": "2026-02-03T13:41:24Z"
}
Returns a list of usage balances for the given project. The list can be filtered by subscription, subscription period, or subscription add-on. When filtering by subscription without specifying subscriptionPeriod or subscriptionAddon, all usage balances for the subscription are returned regardless of source type or period.
This endpoint is currently in preview and might change in the future.
We’re excited to hear your feedback and ideas. Please send an email to support@gigs.com to share your thoughts.
Filter usage balances by Subscription ID.
"sub_0SNlurA049MEWV2gSfSxi00xlPIi"Filter usage balances by subscription period. Requires the subscription parameter. Accepts a positive integer, the special value current, or a negative integer to request previous periods (e.g., -1 for the previous period). Cannot be combined with subscriptionAddon. A usage balance is sourced from either a subscription period or a subscription add-on, never both - combining these will return an error.
"current"Filter usage balances by Subscription Add-on ID. Can be combined with subscription but not with subscriptionPeriod. A usage balance is sourced from either a subscription period or a subscription add-on, never both — combining these will return an error.
"sad_0SNlurA049MEWV2UNWPbDfW5B40U"A cursor for use in pagination. The after parameter takes an object ID that defines the position in the list, only items immediately following the item with that ID will be returned.
A cursor for use in pagination. The before parameter takes an object ID that defines the position in the list, only items immediately preceding the item with that ID will be returned.
The limit of items to be returned in the list, between 0 and 200.
2010>= 0<= 200Returns a list of usage balances.
Type of object is always list.
list usageBalance.A unique identifier to be used as after pagination parameter if more items are available sorted after the current batch of items.
A unique identifier to be used as before pagination parameter if more items are available sorted before the current batch of items.
curl https://api.gigs.com/projects/${GIGS_PROJECT}/usageBalances \
-X GET \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${GIGS_TOKEN}" \
-H "Accept: application/json"
{
"object": "list",
"items": [
{
"object": "usageBalance",
"id": "ubl_0V9n0zo90CE0NuvcsN0j88",
"allowance": {
"object": "allowance",
"id": "alw_0SNlurA049MEWV3OMTRrGKbd99GH",
"name": "Roaming data in Europe",
"type": "data",
"coverage": {
"object": "coverage",
"id": "de",
"countries": [
"DE",
"FR",
"US"
],
"name": "Europe"
},
"limit": 500,
"unit": "bytes"
},
"subscription": "sub_0SNlurA049MEWV2gSfSxi00xlPIi",
"source": {
"type": "subscriptionPeriod",
"subscriptionPeriod": 4,
"subscriptionAddon": null
},
"unit": "bytes",
"used": 230,
"limit": 500,
"remaining": 270,
"usedPercent": 46,
"remainingPercent": 54,
"usableFrom": "2026-01-03T13:41:24Z",
"usableUntil": "2026-02-03T13:41:24Z"
}
],
"moreItemsAfter": null,
"moreItemsBefore": null
}
Returns the details of an existing usage balance.
This endpoint is currently in preview and might change in the future.
We’re excited to hear your feedback and ideas. Please send an email to support@gigs.com to share your thoughts.
The unique identifier for the usage balance.
"ubl_0V9n0zo90CE0NuvcsN0j88"Returns the usage balance.
Type of object is always usageBalance.
usageBalance Unique identifier for the usage balance.
"ubl_0V9n0zo90CE0NuvcsN0j88"Unique identifier of the Subscription the usage balance is related to.
"sub_0SNlurA049MEWV2gSfSxi00xlPIi"{"type":"subscriptionPeriod","subscriptionPeriod":4,"subscriptionAddon":null},{"type":"subscriptionAddon","subscriptionPeriod":null,"subscriptionAddon":"sad_0SNlurA049MEWV2UNWPbDfW5B40U"}The entity type providing the allowance.
subscriptionPeriod subscriptionAddon When the allowance is provided by the subscription's plan, the subscription period this usage balance is bound by.
4When the allowance is provided by a Subscription Add-on, the subscription add-on this usage balance is provided by.
"sad_0SNlurA049MEWV2UNWPbDfW5B40U"The unit the usage is counted in.
bytes seconds messages The amount of usage consumed, counted in unit.
230The amount of usage permitted by the associated allowance counted in unit. A value of null indicates an unlimited allowance.
500The amount remaining that can still be consumed, counted in unit. A value of null indicates an unlimited allowance.
270The percentage of limit that has been used, expressed as an integer between 0 and 100. A value of null indicates an unlimited allowance.
46The percentage of limit that has not been used, expressed as an integer between 0 and 100. A value of null indicates an unlimited allowance.
54Timestamp representing the beginning of this usage balance's validity. A value of null indicates a Balance that is not yet active, for example when a Subscription is still pending.
"2026-01-03T13:41:24Z"Timestamp representing the end of this usage balance's validity. A value of null indicates a Balance that is not yet active, for example when a Subscription is still pending.
"2026-02-03T13:41:24Z"curl https://api.gigs.com/projects/${GIGS_PROJECT}/usageBalances/{usageBalance} \
-X GET \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${GIGS_TOKEN}" \
-H "Accept: application/json"
{
"object": "usageBalance",
"id": "ubl_0V9n0zo90CE0NuvcsN0j88",
"allowance": {
"object": "allowance",
"id": "alw_0SNlurA049MEWV3OMTRrGKbd99GH",
"name": "Roaming data in Europe",
"type": "data",
"coverage": {
"object": "coverage",
"id": "de",
"countries": [
"DE",
"FR",
"US"
],
"name": "Europe"
},
"limit": 500,
"unit": "bytes"
},
"subscription": "sub_0SNlurA049MEWV2gSfSxi00xlPIi",
"source": {
"type": "subscriptionPeriod",
"subscriptionPeriod": 4,
"subscriptionAddon": "sad_0SNlurA049MEWV2UNWPbDfW5B40U"
},
"unit": "bytes",
"used": 230,
"limit": 500,
"remaining": 270,
"usedPercent": 46,
"remainingPercent": 54,
"usableFrom": "2026-01-03T13:41:24Z",
"usableUntil": "2026-02-03T13:41:24Z"
}