curl --location 'https://stg-gateway.invora.app/api/billing/v2/plans/list' \
--header 'Content-Type: application/json' \
--data '{
"filter": {
"part": {
"withDeleted": true
},
"textSearch": "string"
},
"sort": {
"rules": [
{
"createdAt": "SORT_DIRECTION_UNSPECIFIED"
}
]
},
"pagination": {
"limit": "string",
"skip": "string",
"cursor": "string"
},
"readMask": "string",
"view": "VIEW_UNSPECIFIED"
}'{
"items": [
{
"activeSubscriptionsCount": 0,
"amountCents": "string",
"amountCurrency": "CURRENCY_ENUM_UNSPECIFIED",
"applicableUsageThresholds": [
{
"amountCents": "string",
"id": "string",
"recurring": true,
"thresholdDisplayName": "string"
}
],
"billChargesMonthly": true,
"billFixedChargesMonthly": true,
"charges": [
{
"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"
}
],
"chargesCount": 0,
"code": "string",
"createdAt": "2019-08-24T14:15:22.123Z",
"customersCount": 0,
"deletedAt": "2019-08-24T14:15:22.123Z",
"description": "string",
"draftInvoicesCount": 0,
"entitlements": [
{
"code": "string",
"description": "string",
"name": "string",
"privileges": [
{
"code": "string",
"config": {
"selectOptions": [
"string"
]
},
"name": "string",
"value": "string",
"valueType": "PRIVILEGE_VALUE_TYPE_ENUM_UNSPECIFIED"
}
]
}
],
"fixedCharges": [
{
"addOn": {
"amountCents": "string",
"amountCurrency": "CURRENCY_ENUM_UNSPECIFIED",
"appliedAddOnsCount": 0,
"code": "string",
"createdAt": "2019-08-24T14:15:22.123Z",
"customersCount": 0,
"deletedAt": "2019-08-24T14:15:22.123Z",
"description": "string",
"id": "string",
"integrationMappings": [
{
"billingEntityId": "string",
"externalAccountCode": "string",
"externalId": "string",
"externalName": "string",
"id": "string",
"integrationId": "string",
"mappableId": "string",
"mappableType": "MAPPABLE_TYPE_ENUM_UNSPECIFIED"
}
],
"invoiceDisplayName": "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"
},
"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"
},
"chargeModel": "FIXED_CHARGE_CHARGE_MODEL_UNSPECIFIED",
"code": "string",
"createdAt": "2019-08-24T14:15:22.123Z",
"deletedAt": "2019-08-24T14:15:22.123Z",
"id": "string",
"invoiceDisplayName": "string",
"parentId": "string",
"payInAdvance": true,
"properties": {
"amount": {
"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
}
}
],
"volumeRanges": [
{
"flatAmount": {
"units": "string",
"nanos": 0
},
"fromValue": "string",
"perUnitAmount": {
"units": "string",
"nanos": 0
},
"toValue": "string"
}
]
},
"prorated": true,
"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"
}
],
"units": {
"units": "string",
"nanos": 0
},
"updatedAt": "2019-08-24T14:15:22.123Z"
}
],
"fixedChargesCount": 0,
"hasActiveSubscriptions": true,
"hasCharges": true,
"hasCustomers": true,
"hasDraftInvoices": true,
"hasFixedCharges": true,
"hasOverriddenPlans": true,
"hasSubscriptions": true,
"id": "string",
"interval": "PLAN_INTERVAL_UNSPECIFIED",
"invoiceDisplayName": "string",
"isOverridden": true,
"metadata": [
{
"key": "string",
"value": "string"
}
],
"minimumCommitment": {
"amountCents": "string",
"commitmentType": "COMMITMENT_TYPE_UNSPECIFIED",
"createdAt": "2019-08-24T14:15:22.123Z",
"id": "string",
"invoiceDisplayName": "string",
"plan": {},
"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"
},
"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"
},
"parent": {},
"payInAdvance": true,
"subscriptionsCount": 0,
"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"
}
],
"trialPeriod": 0,
"updatedAt": "2019-08-24T14:15:22.123Z",
"usageThresholds": [
{
"amountCents": "string",
"id": "string",
"recurring": true,
"thresholdDisplayName": "string"
}
]
}
],
"totalCount": "string",
"nextPageCursor": "string"
}