Quote the CPQ Usage Price
1 min
POST
https://app.amberflo.io/payments/pricing/amberflo/customer-commitment-quote
Body Parameters
- bodypayment.pricing.customer.quote.CustomerCommitmentUsageQuoteRequest.in
- customerIdstringrequiredDescription
- customProductPlanGeneratorpayment.pricing.plans.generators.PlanGenerator.inDescription
- payment.pricing.plans.generators.CustomPlanGenerator.in
- typestringDescriptionDefaultcustom_pricing_plan
- idstringrequiredDescription
- billingPeriodpayment.pricing.BillingPeriod.inrequiredDescription
- intervalpayment.pricing.BillingPeriodInterval.in
- intervalsCountinteger<int32>
- planLevelFreeTiernumberDescription
- invoiceBasedFeeIdsstring[]Description
- planMinimumPaymentnumberDescription
- minimumPaymentGranularitypayment.pricing.price.UsageGranularity.inDescription
- planNamestringrequiredDescription
- descriptionstringDescription
- feeMapmap<string, payment.pricing.ProductPlanFee.in>Description
- entitlementspayment.pricing.Entitlements.Entitlement.in[]Description
- idstringrequiredDescription
- labelstringDescription
- apiNamestringrequiredDescription
- lockingStatuscom.amberflo.service.common.LockingStatus.inDescription
- isDefaultbooleanDescription
- successorPlanIdstringDescription
- transitionStrategypayment.pricing.SuccessorPlanTransitionStrategy.inDescription
- prepaidBuyingRulespayment.pricing.prepaid.PlanPrepaidBuyingRules.inDescription
- planFixedFeeIdsToPrepaystring[]
- planRecurringPrepaidAmountnumberDescription
- productItemRecurringPrepaidAmountpayment.pricing.prepaid.PrepaidProductItem.in[]Description
- productItemIdstringDescription
- prepaidAmountnumberDescription
- walletMinPrepaidAvailablenumberDescription
- productItemMinPrepaidAvailablemap<string, number>Description
- planCurrencystringExampleDescription
- priceGeneratorspayment.pricing.price.generators.PriceGenerator.in[]requiredDescription
- payment.pricing.price.generators.CostPlusDimensionPriceGenerator.in
- dimensionKeysstring[]requiredDescription
- idstringDescription
- productItemIdstringrequiredDescription
- productItemInvoiceLabelstringDescription
- productItemPriceNamestringDescription
- lockingStatuscom.amberflo.service.common.LockingStatus.inDescription
- scalarnumberDescription
- dimensionalScalarspayment.pricing.price.DimensionalScalar.in[]Description
- dimensionConstraintMapmap<string, string>
- scalarnumber
- priceTierspayment.pricing.price.generators.TieredPriceGroupInfo.in[]requiredDescription
- dimensionValuesstring[]
- priceTierspayment.pricing.price.PriceTier.in[]
- Max depth limit reached
- leafNodeTypestringrequired
- allowPartialBatchbooleanDescription
- typestringDescriptionDefaultcost_plus_dimension
- payment.pricing.price.generators.CostPlusNoDimensionPriceGenerator.in
- idstringDescription
- productItemIdstringrequiredDescription
- productItemInvoiceLabelstringDescription
- productItemPriceNamestringDescription
- scalarnumberDescription
- dimensionalScalarspayment.pricing.price.DimensionalScalar.in[]Description
- Max depth limit reached
- priceTierspayment.pricing.price.PriceTier.in[]requiredDescription
- Max depth limit reached
- allowPartialBatchbooleanDescription
- typestringDescriptionDefaultcost_plus_no_dimension
- payment.pricing.price.generators.FlatRatePriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.FlatRateWithOveragesPriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.InterchangePlusNoDimensionPriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.InterchangePlusDimensionPriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.SubscriptionWithOveragePriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.TieredSeatBasedGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.TieredSeatBasedDimensionGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.UltraFrequencyNoDimensionPriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.UltraFrequencyDimensionPriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.UltraFrequencySubscriptionWithOveragePriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.UsageBasedDimensionPriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.MaxUsageBasedDimensionPriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.SumUsageBasedDimensionPriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.UsageBasedNoDimensionPriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.MaxUsageBasedNoDimensionPriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.SumUsageBasedNoDimensionPriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.UsageBasedVolumePriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.UsageBasedVolumeDimensionPriceGenerator.in
- Max depth limit reached
- invoiceBasedFeespayment.pricing.invoice_based_fees.InvoiceBasedFee.in[]Description
- payment.pricing.invoice_based_fees.ConstantInvoiceRatioFee.in
- typestringDefaultconstant_invoice_ratio_fee
- productIdstring
- idstring
- namestring
- descriptionstring
- lockingStatuscom.amberflo.service.common.LockingStatus.in
- lastUpdateTimeInMillisinteger<int64>
- percentsOfInvoicenumber
- minimumFeePerFullCyclenumber
- payment.pricing.plans.generators.FlatRatePlanGenerator.in
- idstringrequiredDescription
- billingPeriodpayment.pricing.BillingPeriod.inrequiredDescription
- intervalpayment.pricing.BillingPeriodInterval.in
- intervalsCountinteger<int32>
- planNamestringrequiredDescription
- priceGeneratorspayment.pricing.price.generators.FlatRatePriceGenerator.in[]requiredDescription
- idstringrequiredDescription
- flatRatenumberrequiredDescription
- productItemIdstringrequiredDescription
- lockingStatuscom.amberflo.service.common.LockingStatus.inDescription
- productItemInvoiceLabelstringDescription
- productItemPriceNamestringDescription
- scalarnumberDescription
- dimensionalScalarspayment.pricing.price.DimensionalScalar.in[]Description
- dimensionConstraintMapmap<string, string>
- scalarnumber
- usageTransformerpayment.pricing.UsageTransformer.inDescription
- idstringDescription
- namestringDescription
- transformUsageDimensionNamestringDescription
- productItemIdstringDescription
- dimensionsInterpolationscom.amberflo.service.common.dimensions_interpolation.DimensionsInterpolation.in[]Description
- com.amberflo.service.common.dimensions_interpolation.ListNumericInterpolation.in
- Max depth limit reached
- com.amberflo.service.common.dimensions_interpolation.TableInterpolation.in
- Max depth limit reached
- com.amberflo.service.common.dimensions_interpolation.TiersInterpolation.in
- Max depth limit reached
- requiredDimensionsstring[]
- lockingStatuscom.amberflo.service.common.LockingStatus.in
- Max depth limit reached
- lastUpdateTimeInMillisinteger<int64>
- typestringDescriptionDefaultflat_rate
- descriptionstringDescription
- invoiceBasedFeeIdsstring[]Description
- isDefaultbooleanDescription
- lockingStatuscom.amberflo.service.common.LockingStatus.inDescription
- planLevelFreeTiernumberDescription
- successorPlanIdstringDescription
- transitionStrategypayment.pricing.SuccessorPlanTransitionStrategy.inDescription
- entitlementspayment.pricing.Entitlements.Entitlement.in[]Description
- idstringrequiredDescription
- labelstringDescription
- apiNamestringrequiredDescription
- typestringDescriptionDefaultflat_rate
- payment.pricing.plans.generators.PayAndGoPlanGenerator.in
- idstringrequiredDescription
- billingPeriodpayment.pricing.BillingPeriod.inrequiredDescription
- intervalpayment.pricing.BillingPeriodInterval.in
- Max depth limit reached
- intervalsCountinteger<int32>
- planNamestringrequiredDescription
- prepaidBuyingRulespayment.pricing.prepaid.PlanPrepaidBuyingRules.inrequiredDescription
- planFixedFeeIdsToPrepaystring[]
- planRecurringPrepaidAmountnumberDescription
- productItemRecurringPrepaidAmountpayment.pricing.prepaid.PrepaidProductItem.in[]Description
- Max depth limit reached
- walletMinPrepaidAvailablenumberDescription
- productItemMinPrepaidAvailablemap<string, number>Description
- priceGeneratorspayment.pricing.price.generators.UsageBasedPriceGenerator.in[]requiredDescription
- payment.pricing.price.generators.UsageBasedDimensionPriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.UsageBasedNoDimensionPriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.UsageBasedVolumePriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.UsageBasedVolumeDimensionPriceGenerator.in
- Max depth limit reached
- descriptionstringDescription
- feeMapmap<string, payment.pricing.ProductPlanFee.in>Description
- invoiceBasedFeeIdsstring[]Description
- isDefaultbooleanDescription
- lockingStatuscom.amberflo.service.common.LockingStatus.inDescription
- planLevelFreeTiernumberDescription
- successorPlanIdstringDescription
- transitionStrategypayment.pricing.SuccessorPlanTransitionStrategy.inDescription
- entitlementspayment.pricing.Entitlements.Entitlement.in[]Description
- idstringrequiredDescription
- labelstringDescription
- apiNamestringrequiredDescription
- typestringDescriptionDefaultpay_and_go
- payment.pricing.plans.generators.UsageBasedPlanGenerator.in
- idstringrequiredDescription
- billingPeriodpayment.pricing.BillingPeriod.inrequiredDescription
- Max depth limit reached
- planNamestringrequiredDescription
- priceGeneratorspayment.pricing.price.generators.UsageBasedPriceGenerator.in[]requiredDescription
- payment.pricing.price.generators.UsageBasedDimensionPriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.UsageBasedNoDimensionPriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.UsageBasedVolumePriceGenerator.in
- Max depth limit reached
- payment.pricing.price.generators.UsageBasedVolumeDimensionPriceGenerator.in
- Max depth limit reached
- descriptionstringDescription
- invoiceBasedFeeIdsstring[]Description
- isDefaultbooleanDescription
- lockingStatuscom.amberflo.service.common.LockingStatus.inDescription
- Max depth limit reached
- planLevelFreeTiernumberDescription
- successorPlanIdstringDescription
- transitionStrategypayment.pricing.SuccessorPlanTransitionStrategy.inDescription
- Max depth limit reached
- entitlementspayment.pricing.Entitlements.Entitlement.in[]Description
- Max depth limit reached
- typestringDescriptionDefaultpure_usage_based
- payment.pricing.plans.generators.SeatBasedPlanGenerator.in
- Max depth limit reached
- payment.pricing.plans.generators.SubscriptionPlanGenerator.in
- Max depth limit reached
- productPlanIdstringDescription
- intervalUsagespayment.pricing.customer.quote.CustomerCommitmentIntervalUsageRequest.in[]requiredDescription
- timeRangepayment.common.TimeRange.inrequiredDescription
- startTimeInSecondsinteger<int64>
- endTimeInSecondsinteger<int64>
- meterUsagespayment.pricing.customer.quote.CustomerCommitmentItemUsageRequest.in[]requiredDescription
- meterApiNamestringrequiredDescription
- dimensionKeysstring[]requiredDescription
- variantUsagespayment.pricing.customer.quote.CustomerCommitmentVariantUsage.in[]requiredDescription
- dimensionValuesstring[]requiredDescription
- usageValuenumberrequiredDescription
- usageFrequencypayment.pricing.customer.quote.CustomerCommitmentUsageFrequency.inrequiredDescription
- promotionspayment.pricing.customer.quote.CustomerCommitmentPromotion.in[]requiredDescription
- existingPromotionIdstringrequiredDescription
- inlinePromotionpayment.pricing.promotions.Promotion.inrequiredDescription
- payment.pricing.promotions.pre_created.AbsoluteProductAutomaticPromotion.in
- idstringrequiredDescription
- typestringDescriptionDefaultabsolute_product_automatic_promotion
- promotionNamestringrequiredDescription
- descriptionstring
- lockingStatuscom.amberflo.service.common.LockingStatus.in
- dimensionConstraintMapmap<string, string>
- customerTagsmap<string, string>
- isHiddenboolean
- discountnumber
- totalMaxDiscountnumber
- targetProductIdstring
- payment.pricing.promotions.pre_created.AbsoluteProductItemAutomaticPromotion.in
- idstringrequiredDescription
- typestringDescriptionDefaultabsolute_product_item_automatic_promotion
- promotionNamestringrequiredDescription
- descriptionstring
- lockingStatuscom.amberflo.service.common.LockingStatus.in
- Max depth limit reached
- dimensionConstraintMapmap<string, string>
- customerTagsmap<string, string>
- isHiddenboolean
- discountnumber
- totalMaxDiscountnumber
- targetProductItemIdstring
- isRegExbooleanDescription
- payment.pricing.promotions.pre_created.AbsoluteProductItemSalesEventPromotion.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.AbsoluteProductSalesEventPromotion.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.FreeTrialPromotion.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.GenericItemPromotion.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.GenericProductPromotion.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.ProductAbsolutePartnerDiscount.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.ProductItemAbsolutePartnerDiscount.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.RelativeProductItemPartnerDiscount.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.RelativeProductAutomaticPromotion.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.RelativeProductItemAutomaticPromotion.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.RelativeProductItemSalesEventPromotion.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.ProductRelativePartnerDiscount.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.RelativeProductSalesEventPromotion.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.TieredAbsoluteProductAutomaticPromotion.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.TieredAbsoluteProductItemAutomaticPromotion.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.TieredRelativeProductAutomaticPromotion.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.TieredRelativeProductItemAutomaticPromotion.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.TimeLimitedAbsoluteProductItemDiscount.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.TimeLimitedAbsoluteProductDiscount.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.TimeLimitedRelativeProductItemDiscount.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.TimeLimitedRelativeProductDiscount.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.RelativeProductFullDiscount.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.TimeLimitedTieredAbsoluteProductItemDiscount.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.TimeLimitedTieredAbsoluteProductDiscount.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.TimeLimitedTieredRelativeProductItemDiscount.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.TimeLimitedTieredRelativeProductDiscount.in
- Max depth limit reached
- payment.pricing.promotions.pre_created.AbsolutePlanPromotion.in
- Max depth limit reached
Responses
200
- payment.pricing.customer.quote.CustomerCommitmentUsageQuoteResponse.out
- usageQuoteRequestpayment.pricing.customer.quote.CustomerCommitmentUsageQuoteRequest.outrequiredDescription
- customerIdstringrequiredDescription
- customProductPlanGeneratorpayment.pricing.plans.generators.PlanGenerator.outDescription
- payment.pricing.plans.generators.CustomPlanGenerator.out
- typestringDescriptionDefaultcustom_pricing_plan
- idstringrequiredDescription
- billingPeriodpayment.pricing.BillingPeriod.outrequiredDescription
- intervalpayment.pricing.BillingPeriodInterval.out
- intervalsCountinteger<int32>
- planLevelFreeTiernumberDescription
- invoiceBasedFeeIdsstring[]Description
- planMinimumPaymentnumberDescription
- minimumPaymentGranularitypayment.pricing.price.UsageGranularity.outDescription
- planNamestringrequiredDescription
- descriptionstringDescription
- feeMapmap<string, payment.pricing.ProductPlanFee.out>Description
- entitlementspayment.pricing.Entitlements.Entitlement.out[]Description
- idstringrequiredDescription
- labelstringDescription
- apiNamestringrequiredDescription
- lockingStatuscom.amberflo.service.common.LockingStatus.outDescription
- isDefaultbooleanDescription
- successorPlanIdstringDescription
- transitionStrategypayment.pricing.SuccessorPlanTransitionStrategy.outDescription
- prepaidBuyingRulespayment.pricing.prepaid.PlanPrepaidBuyingRules.outDescription
- planFixedFeeIdsToPrepaystring[]
- planRecurringPrepaidAmountnumberDescription
- productItemRecurringPrepaidAmountpayment.pricing.prepaid.PrepaidProductItem.out[]Description
- productItemIdstringDescription
- prepaidAmountnumberDescription
- walletMinPrepaidAvailablenumberDescription
- productItemMinPrepaidAvailablemap<string, number>Description
- planCurrencystringExampleDescription
- priceGeneratorspayment.pricing.price.generators.PriceGenerator.out[]requiredDescription
- payment.pricing.price.generators.CostPlusDimensionPriceGenerator.out
- dimensionKeysstring[]requiredDescription
- idstringDescription
- productItemIdstringrequiredDescription
- productItemInvoiceLabelstringDescription
- productItemPriceNamestringDescription
- lockingStatuscom.amberflo.service.common.LockingStatus.outDescription
- Max depth limit reached
- scalarnumberDescription
- dimensionalScalarspayment.pricing.price.DimensionalScalar.out[]Description
- Max depth limit reached
- priceTierspayment.pricing.price.generators.TieredPriceGroupInfo.out[]requiredDescription
- Max depth limit reached
- allowPartialBatchbooleanDescription
- typestringDescriptionDefaultcost_plus_dimension
- payment.pricing.price.generators.CostPlusNoDimensionPriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.FlatRatePriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.FlatRateWithOveragesPriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.InterchangePlusNoDimensionPriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.InterchangePlusDimensionPriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.SubscriptionWithOveragePriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.TieredSeatBasedGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.TieredSeatBasedDimensionGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.UltraFrequencyNoDimensionPriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.UltraFrequencyDimensionPriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.UltraFrequencySubscriptionWithOveragePriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.UsageBasedDimensionPriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.MaxUsageBasedDimensionPriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.SumUsageBasedDimensionPriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.UsageBasedNoDimensionPriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.MaxUsageBasedNoDimensionPriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.SumUsageBasedNoDimensionPriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.UsageBasedVolumePriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.UsageBasedVolumeDimensionPriceGenerator.out
- Max depth limit reached
- invoiceBasedFeespayment.pricing.invoice_based_fees.InvoiceBasedFee.out[]Description
- payment.pricing.invoice_based_fees.ConstantInvoiceRatioFee.out
- typestringDefaultconstant_invoice_ratio_fee
- productIdstring
- idstring
- namestring
- descriptionstring
- lockingStatuscom.amberflo.service.common.LockingStatus.out
- Max depth limit reached
- lastUpdateTimeInMillisinteger<int64>
- percentsOfInvoicenumber
- minimumFeePerFullCyclenumber
- payment.pricing.plans.generators.FlatRatePlanGenerator.out
- idstringrequiredDescription
- billingPeriodpayment.pricing.BillingPeriod.outrequiredDescription
- intervalpayment.pricing.BillingPeriodInterval.out
- Max depth limit reached
- intervalsCountinteger<int32>
- planNamestringrequiredDescription
- priceGeneratorspayment.pricing.price.generators.FlatRatePriceGenerator.out[]requiredDescription
- idstringrequiredDescription
- flatRatenumberrequiredDescription
- productItemIdstringrequiredDescription
- lockingStatuscom.amberflo.service.common.LockingStatus.outDescription
- Max depth limit reached
- productItemInvoiceLabelstringDescription
- productItemPriceNamestringDescription
- scalarnumberDescription
- dimensionalScalarspayment.pricing.price.DimensionalScalar.out[]Description
- Max depth limit reached
- usageTransformerpayment.pricing.UsageTransformer.outDescription
- Max depth limit reached
- typestringDescriptionDefaultflat_rate
- descriptionstringDescription
- invoiceBasedFeeIdsstring[]Description
- isDefaultbooleanDescription
- lockingStatuscom.amberflo.service.common.LockingStatus.outDescription
- planLevelFreeTiernumberDescription
- successorPlanIdstringDescription
- transitionStrategypayment.pricing.SuccessorPlanTransitionStrategy.outDescription
- entitlementspayment.pricing.Entitlements.Entitlement.out[]Description
- idstringrequiredDescription
- labelstringDescription
- apiNamestringrequiredDescription
- typestringDescriptionDefaultflat_rate
- payment.pricing.plans.generators.PayAndGoPlanGenerator.out
- idstringrequiredDescription
- billingPeriodpayment.pricing.BillingPeriod.outrequiredDescription
- Max depth limit reached
- planNamestringrequiredDescription
- prepaidBuyingRulespayment.pricing.prepaid.PlanPrepaidBuyingRules.outrequiredDescription
- Max depth limit reached
- priceGeneratorspayment.pricing.price.generators.UsageBasedPriceGenerator.out[]requiredDescription
- payment.pricing.price.generators.UsageBasedDimensionPriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.UsageBasedNoDimensionPriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.UsageBasedVolumePriceGenerator.out
- Max depth limit reached
- payment.pricing.price.generators.UsageBasedVolumeDimensionPriceGenerator.out
- Max depth limit reached
- descriptionstringDescription
- feeMapmap<string, payment.pricing.ProductPlanFee.out>Description
- invoiceBasedFeeIdsstring[]Description
- isDefaultbooleanDescription
- lockingStatuscom.amberflo.service.common.LockingStatus.outDescription
- Max depth limit reached
- planLevelFreeTiernumberDescription
- successorPlanIdstringDescription
- transitionStrategypayment.pricing.SuccessorPlanTransitionStrategy.outDescription
- Max depth limit reached
- entitlementspayment.pricing.Entitlements.Entitlement.out[]Description
- Max depth limit reached
- typestringDescriptionDefaultpay_and_go
- payment.pricing.plans.generators.UsageBasedPlanGenerator.out
- Max depth limit reached
- payment.pricing.plans.generators.SeatBasedPlanGenerator.out
- Max depth limit reached
- payment.pricing.plans.generators.SubscriptionPlanGenerator.out
- Max depth limit reached
- productPlanIdstringDescription
- intervalUsagespayment.pricing.customer.quote.CustomerCommitmentIntervalUsageRequest.out[]requiredDescription
- timeRangepayment.common.TimeRange.outrequiredDescription
- startTimeInSecondsinteger<int64>
- endTimeInSecondsinteger<int64>
- meterUsagespayment.pricing.customer.quote.CustomerCommitmentItemUsageRequest.out[]requiredDescription
- meterApiNamestringrequiredDescription
- dimensionKeysstring[]requiredDescription
- variantUsagespayment.pricing.customer.quote.CustomerCommitmentVariantUsage.out[]requiredDescription
- dimensionValuesstring[]requiredDescription
- usageValuenumberrequiredDescription
- usageFrequencypayment.pricing.customer.quote.CustomerCommitmentUsageFrequency.outrequiredDescription
- promotionspayment.pricing.customer.quote.CustomerCommitmentPromotion.out[]requiredDescription
- existingPromotionIdstringrequiredDescription
- inlinePromotionpayment.pricing.promotions.Promotion.outrequiredDescription
- payment.pricing.promotions.pre_created.AbsoluteProductAutomaticPromotion.out
- idstringrequiredDescription
- typestringDescriptionDefaultabsolute_product_automatic_promotion
- promotionNamestringrequiredDescription
- descriptionstring
- lockingStatuscom.amberflo.service.common.LockingStatus.out
- Max depth limit reached
- lastUpdateTimeInMillisinteger<int64>Description
- dimensionConstraintMapmap<string, string>
- customerTagsmap<string, string>
- isHiddenboolean
- discountnumber
- totalMaxDiscountnumber
- targetProductIdstring
- payment.pricing.promotions.pre_created.AbsoluteProductItemAutomaticPromotion.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.AbsoluteProductItemSalesEventPromotion.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.AbsoluteProductSalesEventPromotion.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.FreeTrialPromotion.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.GenericItemPromotion.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.GenericProductPromotion.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.ProductAbsolutePartnerDiscount.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.ProductItemAbsolutePartnerDiscount.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.RelativeProductItemPartnerDiscount.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.RelativeProductAutomaticPromotion.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.RelativeProductItemAutomaticPromotion.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.RelativeProductItemSalesEventPromotion.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.ProductRelativePartnerDiscount.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.RelativeProductSalesEventPromotion.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.TieredAbsoluteProductAutomaticPromotion.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.TieredAbsoluteProductItemAutomaticPromotion.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.TieredRelativeProductAutomaticPromotion.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.TieredRelativeProductItemAutomaticPromotion.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.TimeLimitedAbsoluteProductItemDiscount.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.TimeLimitedAbsoluteProductDiscount.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.TimeLimitedRelativeProductItemDiscount.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.TimeLimitedRelativeProductDiscount.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.RelativeProductFullDiscount.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.TimeLimitedTieredAbsoluteProductItemDiscount.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.TimeLimitedTieredAbsoluteProductDiscount.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.TimeLimitedTieredRelativeProductItemDiscount.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.TimeLimitedTieredRelativeProductDiscount.out
- Max depth limit reached
- payment.pricing.promotions.pre_created.AbsolutePlanPromotion.out
- Max depth limit reached
- intervalQuotespayment.pricing.customer.quote.CustomerCommitmentIntervalUsageResponse.out[]required
- itemQuotespayment.pricing.customer.quote.CustomerCommitmentItemUsageResponse.out[]requiredDescription
- itemQuotepayment.pricing.customer.quote.CustomerCommitmentPriceQuote.outrequiredDescription
- quotedUsageCostBeforeDiscountnumberrequiredDescription
- quotedUsageCostDiscountnumberrequiredDescription
- quotedUsageCostAfterDiscountnumberrequiredDescription
- quotedFixedCostBeforeDiscountnumberrequiredDescription
- quotedFixedCostDiscountnumberrequiredDescription
- quotedFixedCostAfterDiscountnumberrequiredDescription
- quotedCostBeforeDiscountnumberrequiredDescription
- quotedCostDiscountnumberrequiredDescription
- quotedCostAfterDiscountnumberrequiredDescription
- totalMeterUnitsnumberrequiredDescription
- intervalQuotepayment.pricing.customer.quote.CustomerCommitmentPriceQuote.outrequiredDescription
- quotedUsageCostBeforeDiscountnumberrequiredDescription
- quotedUsageCostDiscountnumberrequiredDescription
- quotedUsageCostAfterDiscountnumberrequiredDescription
- quotedFixedCostBeforeDiscountnumberrequiredDescription
- quotedFixedCostDiscountnumberrequiredDescription
- quotedFixedCostAfterDiscountnumberrequiredDescription
- quotedCostBeforeDiscountnumberrequiredDescription
- quotedCostDiscountnumberrequiredDescription
- quotedCostAfterDiscountnumberrequiredDescription
- totalMeterUnitsnumberrequiredDescription
- totalQuotepayment.pricing.customer.quote.CustomerCommitmentPriceQuote.outrequiredDescription
- quotedUsageCostBeforeDiscountnumberrequiredDescription
- quotedUsageCostDiscountnumberrequiredDescription
- quotedUsageCostAfterDiscountnumberrequiredDescription
- quotedFixedCostBeforeDiscountnumberrequiredDescription
- quotedFixedCostDiscountnumberrequiredDescription
- quotedFixedCostAfterDiscountnumberrequiredDescription
- quotedCostBeforeDiscountnumberrequiredDescription
- quotedCostDiscountnumberrequiredDescription
- quotedCostAfterDiscountnumberrequiredDescription
- totalMeterUnitsnumberrequiredDescription
curl
curl --request POST \
--url https://app.amberflo.io/payments/pricing/amberflo/customer-commitment-quote \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"customerId": "",
"customProductPlanGenerator": {
"type": "custom_pricing_plan",
"id": "",
"billingPeriod": {},
"planName": "",
"entitlements": [
{
"id": "",
"apiName": ""
}
],
"priceGenerators": {
"dimensionKeys": [],
"productItemId": "",
"priceTiers": [
{
"leafNodeType": ""
}
],
"type": "cost_plus_dimension"
},
"invoiceBasedFees": {
"type": "constant_invoice_ratio_fee"
}
},
"intervalUsages": [
{
"timeRange": {},
"meterUsages": [
{
"meterApiName": "",
"dimensionKeys": [],
"variantUsages": [
{
"dimensionValues": [],
"usageValue": "",
"usageFrequency": ""
}
]
}
],
"promotions": [
{
"existingPromotionId": "",
"inlinePromotion": {
"id": "",
"type": "absolute_product_automatic_promotion",
"promotionName": ""
}
}
]
}
]
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify({
"customerId": "",
"customProductPlanGenerator": {
"type": "custom_pricing_plan",
"id": "",
"billingPeriod": {},
"planName": "",
"entitlements": [
{
"id": "",
"apiName": ""
}
],
"priceGenerators": {
"dimensionKeys": [],
"productItemId": "",
"priceTiers": [
{
"leafNodeType": ""
}
],
"type": "cost_plus_dimension"
},
"invoiceBasedFees": {
"type": "constant_invoice_ratio_fee"
}
},
"intervalUsages": [
{
"timeRange": {},
"meterUsages": [
{
"meterApiName": "",
"dimensionKeys": [],
"variantUsages": [
{
"dimensionValues": [],
"usageValue": "",
"usageFrequency": ""
}
]
}
],
"promotions": [
{
"existingPromotionId": "",
"inlinePromotion": {
"id": "",
"type": "absolute_product_automatic_promotion",
"promotionName": ""
}
}
]
}
]
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://app.amberflo.io/payments/pricing/amberflo/customer-commitment-quote", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://app.amberflo.io/payments/pricing/amberflo/customer-commitment-quote")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request.body = JSON.dump({
"customerId": "",
"customProductPlanGenerator": {
"type": "custom_pricing_plan",
"id": "",
"billingPeriod": {},
"planName": "",
"entitlements": [
{
"id": "",
"apiName": ""
}
],
"priceGenerators": {
"dimensionKeys": [],
"productItemId": "",
"priceTiers": [
{
"leafNodeType": ""
}
],
"type": "cost_plus_dimension"
},
"invoiceBasedFees": {
"type": "constant_invoice_ratio_fee"
}
},
"intervalUsages": [
{
"timeRange": {},
"meterUsages": [
{
"meterApiName": "",
"dimensionKeys": [],
"variantUsages": [
{
"dimensionValues": [],
"usageValue": "",
"usageFrequency": ""
}
]
}
],
"promotions": [
{
"existingPromotionId": "",
"inlinePromotion": {
"id": "",
"type": "absolute_product_automatic_promotion",
"promotionName": ""
}
}
]
}
]
})
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://app.amberflo.io/payments/pricing/amberflo/customer-commitment-quote"
payload = json.dumps({
"customerId": "",
"customProductPlanGenerator": {
"type": "custom_pricing_plan",
"id": "",
"billingPeriod": {},
"planName": "",
"entitlements": [
{
"id": "",
"apiName": ""
}
],
"priceGenerators": {
"dimensionKeys": [],
"productItemId": "",
"priceTiers": [
{
"leafNodeType": ""
}
],
"type": "cost_plus_dimension"
},
"invoiceBasedFees": {
"type": "constant_invoice_ratio_fee"
}
},
"intervalUsages": [
{
"timeRange": {},
"meterUsages": [
{
"meterApiName": "",
"dimensionKeys": [],
"variantUsages": [
{
"dimensionValues": [],
"usageValue": "",
"usageFrequency": ""
}
]
}
],
"promotions": [
{
"existingPromotionId": "",
"inlinePromotion": {
"id": "",
"type": "absolute_product_automatic_promotion",
"promotionName": ""
}
}
]
}
]
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// Successful request
{
"usageQuoteRequest": {
"customerId": "",
"customProductPlanGenerator": {},
"productPlanId": "",
"intervalUsages": [
{
"timeRange": {
"startTimeInSeconds": "",
"endTimeInSeconds": ""
},
"meterUsages": [
{
"meterApiName": "",
"dimensionKeys": [
""
],
"variantUsages": [
{
"dimensionValues": [
""
],
"usageValue": 0,
"usageFrequency": ""
}
]
}
],
"promotions": [
{
"existingPromotionId": "",
"inlinePromotion": {}
}
]
}
]
},
"intervalQuotes": [
{
"itemQuotes": [
{
"itemQuote": {
"quotedUsageCostBeforeDiscount": 0,
"quotedUsageCostDiscount": 0,
"quotedUsageCostAfterDiscount": 0,
"quotedFixedCostBeforeDiscount": 0,
"quotedFixedCostDiscount": 0,
"quotedFixedCostAfterDiscount": 0,
"quotedCostBeforeDiscount": 0,
"quotedCostDiscount": 0,
"quotedCostAfterDiscount": 0,
"totalMeterUnits": 0
}
}
],
"intervalQuote": {
"quotedUsageCostBeforeDiscount": 0,
"quotedUsageCostDiscount": 0,
"quotedUsageCostAfterDiscount": 0,
"quotedFixedCostBeforeDiscount": 0,
"quotedFixedCostDiscount": 0,
"quotedFixedCostAfterDiscount": 0,
"quotedCostBeforeDiscount": 0,
"quotedCostDiscount": 0,
"quotedCostAfterDiscount": 0,
"totalMeterUnits": 0
}
}
],
"totalQuote": {
"quotedUsageCostBeforeDiscount": 0,
"quotedUsageCostDiscount": 0,
"quotedUsageCostAfterDiscount": 0,
"quotedFixedCostBeforeDiscount": 0,
"quotedFixedCostDiscount": 0,
"quotedFixedCostAfterDiscount": 0,
"quotedCostBeforeDiscount": 0,
"quotedCostDiscount": 0,
"quotedCostAfterDiscount": 0,
"totalMeterUnits": 0
}
}