curl --location 'https://stg-gateway.invora.app/api/billing/v2/billable-metrics/list' \
--header 'Content-Type: application/json' \
--data '{
"filter": {
"part": {
"aggregationTypes": {
"inValues": [
"AGGREGATION_TYPE_UNSPECIFIED"
]
},
"planId": "string",
"recurring": true
},
"textSearch": "string"
},
"sort": {
"rules": [
{
"createdAt": "SORT_DIRECTION_UNSPECIFIED"
}
]
},
"pagination": {
"limit": "string",
"skip": "string",
"cursor": "string"
},
"readMask": "string",
"view": "VIEW_UNSPECIFIED"
}'{
"items": [
{
"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"
}
],
"totalCount": "string",
"nextPageCursor": "string"
}