curl --location --request PUT 'https://stg-gateway.invora.app/api/billing/v2/subscriptions/' \
--header 'Content-Type: application/json' \
--data '{
"id": "string",
"endingAt": "2019-08-24T14:15:22.123Z",
"invoiceCustomSection": {
"invoiceCustomSectionIds": [
"string"
],
"skipInvoiceCustomSections": true
},
"name": "string",
"paymentMethod": {
"paymentMethodId": "string",
"paymentMethodType": "PAYMENT_METHOD_TYPE_UNSPECIFIED"
},
"planOverrides": {
"amountCents": "string",
"amountCurrency": "CURRENCY_ENUM_UNSPECIFIED",
"charges": [
{
"appliedPricingUnit": {
"conversionRate": {
"units": "string",
"nanos": 0
}
},
"billableMetricId": "string",
"filters": [
{
"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",
"minAmountCents": "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"
}
]
},
"taxCodes": [
"string"
]
}
],
"description": "string",
"fixedCharges": [
{
"addOnId": "string",
"applyUnitsImmediately": true,
"id": "string",
"invoiceDisplayName": "string",
"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"
}
]
},
"taxCodes": [
"string"
],
"units": "string"
}
],
"invoiceDisplayName": "string",
"minimumCommitment": {
"amountCents": "string",
"commitmentType": "COMMITMENT_TYPE_UNSPECIFIED",
"id": "string",
"invoiceDisplayName": "string",
"taxCodes": [
"string"
]
},
"name": "string",
"taxCodes": [
"string"
],
"trialPeriod": 0
},
"progressiveBillingDisabled": true,
"subscriptionAt": "2019-08-24T14:15:22.123Z",
"usageThresholds": [
{
"amountCents": "string",
"recurring": true,
"thresholdDisplayName": "string"
}
],
"updateMask": "string"
}'