curl --location 'https://stg-gateway.invora.app/api/billing/v2/account/subscriptions//usage?readMask=undefined&view=undefined'{
"customerUsage": {
"amountCents": "string",
"chargesUsage": [
{
"amountCents": "string",
"billableMetric": {
"aggregationType": "AGGREGATION_TYPE_UNSPECIFIED",
"code": "string",
"createdAt": "2019-08-24T14:15:22.123Z",
"deletedAt": "2019-08-24T14:15:22.123Z",
"description": "string",
"expression": "string",
"fieldName": "string",
"filters": [
{
"id": "string",
"key": "string",
"values": [
"string"
]
}
],
"hasActiveSubscriptions": true,
"hasDraftInvoices": true,
"hasPlans": true,
"hasSubscriptions": true,
"id": "string",
"integrationMappings": [
{
"billingEntityId": "string",
"externalAccountCode": "string",
"externalId": "string",
"externalName": "string",
"id": "string",
"integrationId": "string",
"mappableId": "string",
"mappableType": "MAPPABLE_TYPE_ENUM_UNSPECIFIED"
}
],
"name": "string",
"organization": {
"accessibleByCurrentSession": true,
"billingConfiguration": {
"documentLocale": "string",
"id": "string",
"invoiceFooter": "string",
"invoiceGracePeriod": 0
},
"canCreateBillingEntity": true,
"defaultCurrency": "CURRENCY_ENUM_UNSPECIFIED",
"id": "string",
"logoUrl": "string",
"name": "string",
"timezone": "TIMEZONE_UNSPECIFIED"
},
"recurring": true,
"roundingFunction": "ROUNDING_FUNCTION_UNSPECIFIED",
"roundingPrecision": 0,
"updatedAt": "2019-08-24T14:15:22.123Z",
"weightedInterval": "WEIGHTED_INTERVAL_UNSPECIFIED"
},
"charge": {
"appliedPricingUnit": {
"conversionRate": {
"units": "string",
"nanos": 0
},
"createdAt": "2019-08-24T14:15:22.123Z",
"id": "string",
"pricingUnit": {
"code": "string",
"createdAt": "2019-08-24T14:15:22.123Z",
"description": "string",
"id": "string",
"name": "string",
"shortName": "string",
"updatedAt": "2019-08-24T14:15:22.123Z"
},
"updatedAt": "2019-08-24T14:15:22.123Z"
},
"billableMetric": {
"aggregationType": "AGGREGATION_TYPE_UNSPECIFIED",
"code": "string",
"createdAt": "2019-08-24T14:15:22.123Z",
"deletedAt": "2019-08-24T14:15:22.123Z",
"description": "string",
"expression": "string",
"fieldName": "string",
"filters": [
{
"id": "string",
"key": "string",
"values": [
"string"
]
}
],
"hasActiveSubscriptions": true,
"hasDraftInvoices": true,
"hasPlans": true,
"hasSubscriptions": true,
"id": "string",
"integrationMappings": [
{
"billingEntityId": "string",
"externalAccountCode": "string",
"externalId": "string",
"externalName": "string",
"id": "string",
"integrationId": "string",
"mappableId": "string",
"mappableType": "MAPPABLE_TYPE_ENUM_UNSPECIFIED"
}
],
"name": "string",
"organization": {
"accessibleByCurrentSession": true,
"billingConfiguration": {
"documentLocale": "string",
"id": "string",
"invoiceFooter": "string",
"invoiceGracePeriod": 0
},
"canCreateBillingEntity": true,
"defaultCurrency": "CURRENCY_ENUM_UNSPECIFIED",
"id": "string",
"logoUrl": "string",
"name": "string",
"timezone": "TIMEZONE_UNSPECIFIED"
},
"recurring": true,
"roundingFunction": "ROUNDING_FUNCTION_UNSPECIFIED",
"roundingPrecision": 0,
"updatedAt": "2019-08-24T14:15:22.123Z",
"weightedInterval": "WEIGHTED_INTERVAL_UNSPECIFIED"
},
"chargeModel": "CHARGE_MODEL_UNSPECIFIED",
"code": "string",
"createdAt": "2019-08-24T14:15:22.123Z",
"deletedAt": "2019-08-24T14:15:22.123Z",
"filters": [
{
"chargeCode": "string",
"id": "string",
"invoiceDisplayName": "string",
"properties": {
"amount": {
"units": "string",
"nanos": 0
},
"customProperties": {},
"fixedAmount": "string",
"freeUnits": "string",
"freeUnitsPerEvents": "string",
"freeUnitsPerTotalAggregation": {
"units": "string",
"nanos": 0
},
"graduatedPercentageRanges": [
{
"flatAmount": {
"units": "string",
"nanos": 0
},
"fromValue": {
"units": "string",
"nanos": 0
},
"rate": {
"units": "string",
"nanos": 0
},
"toValue": {
"units": "string",
"nanos": 0
}
}
],
"graduatedRanges": [
{
"flatAmount": {
"units": "string",
"nanos": 0
},
"fromValue": {
"units": "string",
"nanos": 0
},
"perUnitAmount": {
"units": "string",
"nanos": 0
},
"toValue": {
"units": "string",
"nanos": 0
}
}
],
"packageSize": "string",
"perTransactionMaxAmount": "string",
"perTransactionMinAmount": "string",
"pricingGroupKeys": [
"string"
],
"rate": {
"units": "string",
"nanos": 0
},
"volumeRanges": [
{
"flatAmount": {
"units": "string",
"nanos": 0
},
"fromValue": "string",
"perUnitAmount": {
"units": "string",
"nanos": 0
},
"toValue": "string"
}
]
},
"values": {}
}
],
"id": "string",
"invoiceDisplayName": "string",
"invoiceable": true,
"minAmountCents": "string",
"parentId": "string",
"payInAdvance": true,
"properties": {
"amount": {
"units": "string",
"nanos": 0
},
"customProperties": {},
"fixedAmount": "string",
"freeUnits": "string",
"freeUnitsPerEvents": "string",
"freeUnitsPerTotalAggregation": {
"units": "string",
"nanos": 0
},
"graduatedPercentageRanges": [
{
"flatAmount": {
"units": "string",
"nanos": 0
},
"fromValue": {
"units": "string",
"nanos": 0
},
"rate": {
"units": "string",
"nanos": 0
},
"toValue": {
"units": "string",
"nanos": 0
}
}
],
"graduatedRanges": [
{
"flatAmount": {
"units": "string",
"nanos": 0
},
"fromValue": {
"units": "string",
"nanos": 0
},
"perUnitAmount": {
"units": "string",
"nanos": 0
},
"toValue": {
"units": "string",
"nanos": 0
}
}
],
"packageSize": "string",
"perTransactionMaxAmount": "string",
"perTransactionMinAmount": "string",
"pricingGroupKeys": [
"string"
],
"rate": {
"units": "string",
"nanos": 0
},
"volumeRanges": [
{
"flatAmount": {
"units": "string",
"nanos": 0
},
"fromValue": "string",
"perUnitAmount": {
"units": "string",
"nanos": 0
},
"toValue": "string"
}
]
},
"prorated": true,
"regroupPaidFees": "REGROUP_PAID_FEES_UNSPECIFIED",
"taxes": [
{
"addOnsCount": 0,
"appliedToOrganization": true,
"autoGenerated": true,
"chargesCount": 0,
"code": "string",
"createdAt": "2019-08-24T14:15:22.123Z",
"customersCount": 0,
"description": "string",
"id": "string",
"name": "string",
"organization": {
"accessibleByCurrentSession": true,
"billingConfiguration": {
"documentLocale": "string",
"id": "string",
"invoiceFooter": "string",
"invoiceGracePeriod": 0
},
"canCreateBillingEntity": true,
"defaultCurrency": "CURRENCY_ENUM_UNSPECIFIED",
"id": "string",
"logoUrl": "string",
"name": "string",
"timezone": "TIMEZONE_UNSPECIFIED"
},
"plansCount": 0,
"rate": {
"units": "string",
"nanos": 0
},
"updatedAt": "2019-08-24T14:15:22.123Z"
}
],
"updatedAt": "2019-08-24T14:15:22.123Z"
},
"eventsCount": 0,
"filters": [
{
"amountCents": "string",
"eventsCount": 0,
"id": "string",
"invoiceDisplayName": "string",
"pricingUnitAmountCents": "string",
"units": {
"units": "string",
"nanos": 0
},
"values": {}
}
],
"groupedUsage": [
{
"amountCents": "string",
"eventsCount": 0,
"filters": [
{
"amountCents": "string",
"eventsCount": 0,
"id": "string",
"invoiceDisplayName": "string",
"pricingUnitAmountCents": "string",
"units": {
"units": "string",
"nanos": 0
},
"values": {}
}
],
"groupedBy": {},
"id": "string",
"pricingUnitAmountCents": "string",
"units": {
"units": "string",
"nanos": 0
}
}
],
"id": "string",
"pricingUnitAmountCents": "string",
"units": {
"units": "string",
"nanos": 0
}
}
],
"currency": "CURRENCY_ENUM_UNSPECIFIED",
"fromDatetime": "2019-08-24T14:15:22.123Z",
"issuingDate": "2019-08-24",
"taxesAmountCents": "string",
"toDatetime": "2019-08-24T14:15:22.123Z",
"totalAmountCents": "string"
}
}