---
title: Get product plan by ID.
slug: amberflo-api/get-product-plan-by-id
docTags: 
createdAt: 2024-11-07T15:10:16.977Z
---

{
  "id": "x1QoVBQobNH8qECq8SZsv",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://app.amberflo.io/payments/pricing/amberflo/account-pricing/product-plans",
    "servers": [
      {
        "url": "https://app.amberflo.io/payments/pricing/amberflo/account-pricing/product-plans"
      }
    ],
    "name": "Get product plan by ID.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKey",
          "name": "X-API-KEY",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "payment.pricing.ProductPlan.out",
            "schema": [
              {
                "name": "id",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "productId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "productItemPriceIdsMap",
                "kind": "optional",
                "type": "map",
                "example": "",
                "customType": "map<string, string>",
                "schema": []
              },
              {
                "name": "billingPeriod",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/payment.pricing.BillingPeriod.out",
                "customType": "payment.pricing.BillingPeriod.out",
                "schema": [
                  {
                    "name": "interval",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "modelRef": "#/components/schemas/payment.pricing.BillingPeriodInterval.out",
                    "customType": "payment.pricing.BillingPeriodInterval.out",
                    "schema": []
                  },
                  {
                    "name": "intervalsCount",
                    "kind": "optional",
                    "type": "integer<int32>",
                    "example": 0
                  }
                ]
              },
              {
                "name": "planLevelFreeTier",
                "kind": "optional",
                "type": "number",
                "example": ""
              },
              {
                "name": "invoiceBasedFeeIds",
                "kind": "optional",
                "type": "array",
                "example": "",
                "itemType": "string",
                "customType": "string[]",
                "itemExample": "",
                "itemDefault": ""
              },
              {
                "name": "planMinimumPayment",
                "kind": "optional",
                "type": "number",
                "description": "A minimum payment for the entire plan.",
                "example": ""
              },
              {
                "name": "minimumPaymentGranularity",
                "kind": "optional",
                "type": "string",
                "description": "Determines the granularity of the payment. only 'hourly' and 'entire_invoice_period' are allowed, currently.",
                "modelRef": "#/components/schemas/payment.pricing.price.UsageGranularity.out",
                "customType": "payment.pricing.price.UsageGranularity.out",
                "schema": []
              },
              {
                "name": "productPlanName",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "description",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "lastUpdateTimeInMillis",
                "kind": "optional",
                "type": "integer<int64>",
                "example": 0
              },
              {
                "name": "feeMap",
                "kind": "optional",
                "type": "map",
                "example": "",
                "customType": "map<string, payment.pricing.ProductPlanFee.out>",
                "schema": []
              },
              {
                "name": "entitlements",
                "kind": "optional",
                "type": "array",
                "description": "",
                "modelRef": "#/components/schemas/payment.pricing.Entitlements.Entitlement.out",
                "customType": "payment.pricing.Entitlements.Entitlement.out[]",
                "schema": [
                  {
                    "name": "id",
                    "kind": "required",
                    "type": "string",
                    "description": "Id for the Entitlement.",
                    "example": ""
                  },
                  {
                    "name": "label",
                    "kind": "optional",
                    "type": "string",
                    "description": "Label for the Entitlement.",
                    "example": ""
                  },
                  {
                    "name": "apiName",
                    "kind": "required",
                    "type": "string",
                    "description": "User-defined API Name for the Entitlement.",
                    "example": ""
                  }
                ]
              },
              {
                "name": "lockingStatus",
                "kind": "optional",
                "type": "string",
                "description": "",
                "modelRef": "#/components/schemas/com.amberflo.service.common.LockingStatus.out",
                "customType": "com.amberflo.service.common.LockingStatus.out",
                "schema": []
              },
              {
                "name": "isDefault",
                "kind": "optional",
                "type": "boolean",
                "example": ""
              },
              {
                "name": "successorPlanId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "transitionStrategy",
                "kind": "optional",
                "type": "string",
                "description": "",
                "modelRef": "#/components/schemas/payment.pricing.SuccessorPlanTransitionStrategy.out",
                "customType": "payment.pricing.SuccessorPlanTransitionStrategy.out",
                "schema": []
              },
              {
                "name": "type",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "prepaidBuyingRules",
                "kind": "optional",
                "type": "object",
                "description": "Rules for the prepaid",
                "modelRef": "#/components/schemas/payment.pricing.prepaid.PlanPrepaidBuyingRules.out",
                "customType": "payment.pricing.prepaid.PlanPrepaidBuyingRules.out",
                "schema": [
                  {
                    "name": "planFixedFeeIdsToPrepay",
                    "kind": "optional",
                    "type": "array",
                    "example": "",
                    "itemType": "string",
                    "customType": "string[]",
                    "itemExample": "",
                    "itemDefault": ""
                  },
                  {
                    "name": "planRecurringPrepaidAmount",
                    "kind": "optional",
                    "type": "number",
                    "description": "Recurring prepaid to purchase on every billing period on a plan level.",
                    "example": ""
                  },
                  {
                    "name": "productItemRecurringPrepaidAmount",
                    "kind": "optional",
                    "type": "array",
                    "description": "Recurring prepaid to purchase on every billing period on a product item level.",
                    "modelRef": "#/components/schemas/payment.pricing.prepaid.PrepaidProductItem.out",
                    "customType": "payment.pricing.prepaid.PrepaidProductItem.out[]",
                    "schema": [
                      {
                        "name": "productItemId",
                        "kind": "optional",
                        "type": "string",
                        "description": "Product item id that is associated with amount of prepaid.",
                        "example": ""
                      },
                      {
                        "name": "prepaidAmount",
                        "kind": "optional",
                        "type": "number",
                        "description": "Prepaid amount that is associated with the object.",
                        "example": ""
                      }
                    ]
                  },
                  {
                    "name": "walletMinPrepaidAvailable",
                    "kind": "optional",
                    "type": "number",
                    "description": "Minimum amount that the prepaid wallet should hold. If it's below, Amberflo will automatically purchase more.",
                    "example": ""
                  },
                  {
                    "name": "productItemMinPrepaidAvailable",
                    "kind": "optional",
                    "type": "map",
                    "description": "Key: product item id. Minimum amount that prepaid cards for a product item should hold. If it's below, Amberflo will automatically purchase more.",
                    "example": "",
                    "customType": "map<string, number>",
                    "schema": []
                  }
                ]
              },
              {
                "name": "planGenerator",
                "kind": "optional",
                "type": "object",
                "description": "The template of the plan generator",
                "modelRef": "#/components/schemas/payment.pricing.plans.generators.PlanGenerator.out",
                "customType": "payment.pricing.plans.generators.PlanGenerator.out",
                "schema": [],
                "complexType": "oneOf",
                "complexItems": [
                  {
                    "name": "payment.pricing.plans.generators.CustomPlanGenerator.out",
                    "description": "",
                    "modelRef": "#/components/schemas/payment.pricing.plans.generators.CustomPlanGenerator.out",
                    "schema": [
                      {
                        "name": "type",
                        "kind": "optional",
                        "type": "string",
                        "description": "Type of template, automatically populated.",
                        "example": "",
                        "default": "custom_pricing_plan"
                      },
                      {
                        "name": "id",
                        "kind": "required",
                        "type": "string",
                        "description": "Id associated with the plan.",
                        "example": ""
                      },
                      {
                        "name": "billingPeriod",
                        "kind": "required",
                        "type": "object",
                        "description": "Billing period of the plan: how often an invoice is generated.",
                        "modelRef": "#/components/schemas/payment.pricing.BillingPeriod.out",
                        "customType": "payment.pricing.BillingPeriod.out",
                        "schema": [
                          {
                            "name": "interval",
                            "kind": "optional",
                            "type": "string",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.BillingPeriodInterval.out",
                            "customType": "payment.pricing.BillingPeriodInterval.out",
                            "schema": []
                          },
                          {
                            "name": "intervalsCount",
                            "kind": "optional",
                            "type": "integer<int32>",
                            "example": 0
                          }
                        ]
                      },
                      {
                        "name": "planLevelFreeTier",
                        "kind": "optional",
                        "type": "number",
                        "description": "Amount that user can use for free without paying on a plan level.",
                        "example": ""
                      },
                      {
                        "name": "invoiceBasedFeeIds",
                        "kind": "optional",
                        "type": "array",
                        "description": "A set of fee ids that can calculate an invoice's cost in a custom way.",
                        "example": "",
                        "itemType": "string",
                        "customType": "string[]",
                        "itemExample": "",
                        "itemDefault": ""
                      },
                      {
                        "name": "planMinimumPayment",
                        "kind": "optional",
                        "type": "number",
                        "description": "A minimum payment for the entire plan.",
                        "example": ""
                      },
                      {
                        "name": "minimumPaymentGranularity",
                        "kind": "optional",
                        "type": "string",
                        "description": "Determines the granularity of the payment. only 'hourly' and 'entire_invoice_period' are allowed, currently.",
                        "modelRef": "#/components/schemas/payment.pricing.price.UsageGranularity.out",
                        "customType": "payment.pricing.price.UsageGranularity.out",
                        "schema": []
                      },
                      {
                        "name": "planName",
                        "kind": "required",
                        "type": "string",
                        "description": "Name of the plan. Useful for displaying to users.",
                        "example": ""
                      },
                      {
                        "name": "description",
                        "kind": "optional",
                        "type": "string",
                        "description": "Description of the plan. Useful for displaying to users.",
                        "example": ""
                      },
                      {
                        "name": "feeMap",
                        "kind": "optional",
                        "type": "map",
                        "description": "Fee Id to fee that maps to product plan fee.",
                        "example": "",
                        "customType": "map<string, payment.pricing.ProductPlanFee.out>",
                        "schema": []
                      },
                      {
                        "name": "entitlements",
                        "kind": "optional",
                        "type": "array",
                        "description": "A list of entitlements: Entitlement is a feature flag for a specified entitlement id or an api name.",
                        "modelRef": "#/components/schemas/payment.pricing.Entitlements.Entitlement.out",
                        "customType": "payment.pricing.Entitlements.Entitlement.out[]",
                        "schema": [
                          {
                            "name": "id",
                            "kind": "required",
                            "type": "string",
                            "description": "Id for the Entitlement.",
                            "example": ""
                          },
                          {
                            "name": "label",
                            "kind": "optional",
                            "type": "string",
                            "description": "Label for the Entitlement.",
                            "example": ""
                          },
                          {
                            "name": "apiName",
                            "kind": "required",
                            "type": "string",
                            "description": "User-defined API Name for the Entitlement.",
                            "example": ""
                          }
                        ]
                      },
                      {
                        "name": "lockingStatus",
                        "kind": "optional",
                        "type": "string",
                        "description": "Indicates if the plan can be modified or not.",
                        "modelRef": "#/components/schemas/com.amberflo.service.common.LockingStatus.out",
                        "customType": "com.amberflo.service.common.LockingStatus.out",
                        "schema": []
                      },
                      {
                        "name": "isDefault",
                        "kind": "optional",
                        "type": "boolean",
                        "description": "Indicates if the plan is the default plan for users.",
                        "example": ""
                      },
                      {
                        "name": "successorPlanId",
                        "kind": "optional",
                        "type": "string",
                        "description": "Indicates if the plan has a successor. Gives the option to automatically assign a new plan for a given plan once current plan is deprecated.",
                        "example": ""
                      },
                      {
                        "name": "transitionStrategy",
                        "kind": "optional",
                        "type": "string",
                        "description": "Successor plan transition: whether to wait for end of billing cycle or not.",
                        "modelRef": "#/components/schemas/payment.pricing.SuccessorPlanTransitionStrategy.out",
                        "customType": "payment.pricing.SuccessorPlanTransitionStrategy.out",
                        "schema": []
                      },
                      {
                        "name": "prepaidBuyingRules",
                        "kind": "optional",
                        "type": "object",
                        "description": "Rules for the prepaid",
                        "modelRef": "#/components/schemas/payment.pricing.prepaid.PlanPrepaidBuyingRules.out",
                        "customType": "payment.pricing.prepaid.PlanPrepaidBuyingRules.out",
                        "schema": [
                          {
                            "name": "planFixedFeeIdsToPrepay",
                            "kind": "optional",
                            "type": "array",
                            "example": "",
                            "itemType": "string",
                            "customType": "string[]",
                            "itemExample": "",
                            "itemDefault": ""
                          },
                          {
                            "name": "planRecurringPrepaidAmount",
                            "kind": "optional",
                            "type": "number",
                            "description": "Recurring prepaid to purchase on every billing period on a plan level.",
                            "example": ""
                          },
                          {
                            "name": "productItemRecurringPrepaidAmount",
                            "kind": "optional",
                            "type": "array",
                            "description": "Recurring prepaid to purchase on every billing period on a product item level.",
                            "modelRef": "#/components/schemas/payment.pricing.prepaid.PrepaidProductItem.out",
                            "customType": "payment.pricing.prepaid.PrepaidProductItem.out[]",
                            "schema": [
                              {
                                "name": "productItemId",
                                "kind": "optional",
                                "type": "string",
                                "description": "Product item id that is associated with amount of prepaid.",
                                "example": ""
                              },
                              {
                                "name": "prepaidAmount",
                                "kind": "optional",
                                "type": "number",
                                "description": "Prepaid amount that is associated with the object.",
                                "example": ""
                              }
                            ]
                          },
                          {
                            "name": "walletMinPrepaidAvailable",
                            "kind": "optional",
                            "type": "number",
                            "description": "Minimum amount that the prepaid wallet should hold. If it's below, Amberflo will automatically purchase more.",
                            "example": ""
                          },
                          {
                            "name": "productItemMinPrepaidAvailable",
                            "kind": "optional",
                            "type": "map",
                            "description": "Key: product item id. Minimum amount that prepaid cards for a product item should hold. If it's below, Amberflo will automatically purchase more.",
                            "example": "",
                            "customType": "map<string, number>",
                            "schema": []
                          }
                        ]
                      },
                      {
                        "name": "planCurrency",
                        "kind": "optional",
                        "type": "string",
                        "description": "The customized currency for the plan in ISO 4217 format.",
                        "example": "USD"
                      },
                      {
                        "name": "priceGenerators",
                        "kind": "required",
                        "type": "object",
                        "description": "List of price generators to use in the plan. Can be any price generator.",
                        "modelRef": "#/components/schemas/payment.pricing.price.generators.PriceGenerator.out",
                        "customType": "payment.pricing.price.generators.PriceGenerator.out[]",
                        "schema": [],
                        "complexType": "oneOf",
                        "complexItems": [
                          {
                            "name": "payment.pricing.price.generators.CostPlusDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.CostPlusDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "dimensionKeys",
                                "kind": "required",
                                "type": "array",
                                "description": "Keys associated with dimension values.",
                                "example": "",
                                "itemType": "string",
                                "customType": "string[]",
                                "itemExample": "",
                                "itemDefault": ""
                              },
                              {
                                "name": "id",
                                "kind": "optional",
                                "type": "string",
                                "description": "Id associated with the price.",
                                "example": ""
                              },
                              {
                                "name": "productItemId",
                                "kind": "required",
                                "type": "string",
                                "description": "Product item id associated with the price.",
                                "example": ""
                              },
                              {
                                "name": "productItemInvoiceLabel",
                                "kind": "optional",
                                "type": "string",
                                "description": "Optional product item invoice label. Used for renaming invoice items.",
                                "example": ""
                              },
                              {
                                "name": "productItemPriceName",
                                "kind": "optional",
                                "type": "string",
                                "description": "Name of the price machine. Useful for displaying to users.",
                                "example": ""
                              },
                              {
                                "name": "lockingStatus",
                                "kind": "optional",
                                "type": "string",
                                "description": "Indicates if the meter can be modified or not.",
                                "modelRef": "#/components/schemas/com.amberflo.service.common.LockingStatus.out",
                                "customType": "com.amberflo.service.common.LockingStatus.out",
                                "schema": []
                              },
                              {
                                "name": "scalar",
                                "kind": "optional",
                                "type": "number",
                                "description": "Scalar value used to scale usage",
                                "example": ""
                              },
                              {
                                "name": "dimensionalScalars",
                                "kind": "optional",
                                "type": "array",
                                "description": "Scalars for scaling usage by dimensions",
                                "modelRef": "#/components/schemas/payment.pricing.price.DimensionalScalar.out",
                                "customType": "payment.pricing.price.DimensionalScalar.out[]",
                                "schema": [
                                  {
                                    "name": "dimensionConstraintMap",
                                    "kind": "optional",
                                    "type": "map",
                                    "example": "",
                                    "customType": "map<string, string>",
                                    "schema": []
                                  },
                                  {
                                    "name": "scalar",
                                    "kind": "optional",
                                    "type": "number",
                                    "example": ""
                                  }
                                ]
                              },
                              {
                                "name": "priceTiers",
                                "kind": "required",
                                "type": "array",
                                "description": "Price for each tier. Leaf node type must be LeafNode",
                                "modelRef": "#/components/schemas/payment.pricing.price.generators.TieredPriceGroupInfo.out",
                                "customType": "payment.pricing.price.generators.TieredPriceGroupInfo.out[]",
                                "schema": [
                                  {
                                    "name": "dimensionValues",
                                    "kind": "optional",
                                    "type": "array",
                                    "example": "",
                                    "itemType": "string",
                                    "customType": "string[]",
                                    "itemExample": "",
                                    "itemDefault": ""
                                  },
                                  {
                                    "name": "priceTiers",
                                    "kind": "optional",
                                    "type": "array",
                                    "description": "",
                                    "modelRef": "#/components/schemas/payment.pricing.price.PriceTier.out",
                                    "customType": "payment.pricing.price.PriceTier.out[]",
                                    "schema": [
                                      {
                                        "name": "",
                                        "description": "",
                                        "customType": "Max depth limit reached"
                                      }
                                    ]
                                  },
                                  {
                                    "name": "leafNodeType",
                                    "kind": "required",
                                    "type": "string",
                                    "example": ""
                                  }
                                ]
                              },
                              {
                                "name": "allowPartialBatch",
                                "kind": "optional",
                                "type": "boolean",
                                "description": "Count tier rates in cents.",
                                "example": ""
                              },
                              {
                                "name": "type",
                                "kind": "optional",
                                "type": "string",
                                "description": "Type of template, automatically populated.",
                                "example": "",
                                "default": "cost_plus_dimension"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.CostPlusNoDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.CostPlusNoDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "id",
                                "kind": "optional",
                                "type": "string",
                                "description": "Id associated with the price.",
                                "example": ""
                              },
                              {
                                "name": "productItemId",
                                "kind": "required",
                                "type": "string",
                                "description": "Product item id associated with the price.",
                                "example": ""
                              },
                              {
                                "name": "productItemInvoiceLabel",
                                "kind": "optional",
                                "type": "string",
                                "description": "Optional product item invoice label. Used for renaming invoice items.",
                                "example": ""
                              },
                              {
                                "name": "productItemPriceName",
                                "kind": "optional",
                                "type": "string",
                                "description": "Name of the price machine. Useful for displaying to users.",
                                "example": ""
                              },
                              {
                                "name": "scalar",
                                "kind": "optional",
                                "type": "number",
                                "description": "Scalar value used to scale usage",
                                "example": ""
                              },
                              {
                                "name": "dimensionalScalars",
                                "kind": "optional",
                                "type": "array",
                                "description": "Scalars for scaling usage by dimensions",
                                "modelRef": "#/components/schemas/payment.pricing.price.DimensionalScalar.out",
                                "customType": "payment.pricing.price.DimensionalScalar.out[]",
                                "schema": [
                                  {
                                    "name": "",
                                    "description": "",
                                    "customType": "Max depth limit reached"
                                  }
                                ]
                              },
                              {
                                "name": "priceTiers",
                                "kind": "required",
                                "type": "array",
                                "description": "Price for each tier.",
                                "modelRef": "#/components/schemas/payment.pricing.price.PriceTier.out",
                                "customType": "payment.pricing.price.PriceTier.out[]",
                                "schema": [
                                  {
                                    "name": "",
                                    "description": "",
                                    "customType": "Max depth limit reached"
                                  }
                                ]
                              },
                              {
                                "name": "allowPartialBatch",
                                "kind": "optional",
                                "type": "boolean",
                                "description": "Count tier rates in cents.",
                                "example": ""
                              },
                              {
                                "name": "type",
                                "kind": "optional",
                                "type": "string",
                                "description": "Type of template, automatically populated.",
                                "example": "",
                                "default": "cost_plus_no_dimension"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.FlatRatePriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.FlatRatePriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.FlatRateWithOveragesPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.FlatRateWithOveragesPriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.InterchangePlusNoDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.InterchangePlusNoDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.InterchangePlusDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.InterchangePlusDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.SubscriptionWithOveragePriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.SubscriptionWithOveragePriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.TieredSeatBasedGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.TieredSeatBasedGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.TieredSeatBasedDimensionGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.TieredSeatBasedDimensionGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.UltraFrequencyNoDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.UltraFrequencyNoDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.UltraFrequencyDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.UltraFrequencyDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.UltraFrequencySubscriptionWithOveragePriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.UltraFrequencySubscriptionWithOveragePriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.UsageBasedDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.UsageBasedDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.MaxUsageBasedDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.MaxUsageBasedDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.SumUsageBasedDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.SumUsageBasedDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.UsageBasedNoDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.UsageBasedNoDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.MaxUsageBasedNoDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.MaxUsageBasedNoDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.SumUsageBasedNoDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.SumUsageBasedNoDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.UsageBasedVolumePriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.UsageBasedVolumePriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.UsageBasedVolumeDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.UsageBasedVolumeDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "invoiceBasedFees",
                        "kind": "optional",
                        "type": "object",
                        "description": "The service fees for the invoice.",
                        "modelRef": "#/components/schemas/payment.pricing.invoice_based_fees.InvoiceBasedFee.out",
                        "customType": "payment.pricing.invoice_based_fees.InvoiceBasedFee.out[]",
                        "schema": [],
                        "complexType": "oneOf",
                        "complexItems": [
                          {
                            "name": "payment.pricing.invoice_based_fees.ConstantInvoiceRatioFee.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.invoice_based_fees.ConstantInvoiceRatioFee.out",
                            "schema": [
                              {
                                "name": "type",
                                "kind": "optional",
                                "type": "string",
                                "example": "",
                                "default": "constant_invoice_ratio_fee"
                              },
                              {
                                "name": "productId",
                                "kind": "optional",
                                "type": "string",
                                "example": ""
                              },
                              {
                                "name": "id",
                                "kind": "optional",
                                "type": "string",
                                "example": ""
                              },
                              {
                                "name": "name",
                                "kind": "optional",
                                "type": "string",
                                "example": ""
                              },
                              {
                                "name": "description",
                                "kind": "optional",
                                "type": "string",
                                "example": ""
                              },
                              {
                                "name": "lockingStatus",
                                "kind": "optional",
                                "type": "string",
                                "description": "",
                                "modelRef": "#/components/schemas/com.amberflo.service.common.LockingStatus.out",
                                "customType": "com.amberflo.service.common.LockingStatus.out",
                                "schema": []
                              },
                              {
                                "name": "lastUpdateTimeInMillis",
                                "kind": "optional",
                                "type": "integer<int64>",
                                "example": 0
                              },
                              {
                                "name": "percentsOfInvoice",
                                "kind": "optional",
                                "type": "number",
                                "example": ""
                              },
                              {
                                "name": "minimumFeePerFullCycle",
                                "kind": "optional",
                                "type": "number",
                                "example": ""
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "payment.pricing.plans.generators.FlatRatePlanGenerator.out",
                    "description": "",
                    "modelRef": "#/components/schemas/payment.pricing.plans.generators.FlatRatePlanGenerator.out",
                    "schema": [
                      {
                        "name": "id",
                        "kind": "required",
                        "type": "string",
                        "description": "Id associated with the plan.",
                        "example": ""
                      },
                      {
                        "name": "billingPeriod",
                        "kind": "required",
                        "type": "object",
                        "description": "Billing period of the plan: how often an invoice is generated.",
                        "modelRef": "#/components/schemas/payment.pricing.BillingPeriod.out",
                        "customType": "payment.pricing.BillingPeriod.out",
                        "schema": [
                          {
                            "name": "interval",
                            "kind": "optional",
                            "type": "string",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.BillingPeriodInterval.out",
                            "customType": "payment.pricing.BillingPeriodInterval.out",
                            "schema": []
                          },
                          {
                            "name": "intervalsCount",
                            "kind": "optional",
                            "type": "integer<int32>",
                            "example": 0
                          }
                        ]
                      },
                      {
                        "name": "planName",
                        "kind": "required",
                        "type": "string",
                        "description": "Name of the plan. Useful for displaying to users.",
                        "example": ""
                      },
                      {
                        "name": "priceGenerators",
                        "kind": "required",
                        "type": "array",
                        "description": "List of price generators to use in the plan. Must be strictly flat rate.",
                        "modelRef": "#/components/schemas/payment.pricing.price.generators.FlatRatePriceGenerator.out",
                        "customType": "payment.pricing.price.generators.FlatRatePriceGenerator.out[]",
                        "schema": [
                          {
                            "name": "id",
                            "kind": "required",
                            "type": "string",
                            "description": "Id associated with the price.",
                            "example": ""
                          },
                          {
                            "name": "flatRate",
                            "kind": "required",
                            "type": "number",
                            "description": "Amount intended to be charged.",
                            "example": ""
                          },
                          {
                            "name": "productItemId",
                            "kind": "required",
                            "type": "string",
                            "description": "Product item id associated with the price.",
                            "example": ""
                          },
                          {
                            "name": "lockingStatus",
                            "kind": "optional",
                            "type": "string",
                            "description": "Indicates if the meter can be modified or not.",
                            "modelRef": "#/components/schemas/com.amberflo.service.common.LockingStatus.out",
                            "customType": "com.amberflo.service.common.LockingStatus.out",
                            "schema": []
                          },
                          {
                            "name": "productItemInvoiceLabel",
                            "kind": "optional",
                            "type": "string",
                            "description": "Optional product item invoice label. Used for renaming invoice items.",
                            "example": ""
                          },
                          {
                            "name": "productItemPriceName",
                            "kind": "optional",
                            "type": "string",
                            "description": "Name of the price machine. Useful for displaying to users.",
                            "example": ""
                          },
                          {
                            "name": "scalar",
                            "kind": "optional",
                            "type": "number",
                            "description": "Optional scalar for scaling usage",
                            "example": ""
                          },
                          {
                            "name": "dimensionalScalars",
                            "kind": "optional",
                            "type": "array",
                            "description": "Optional scalars for scaling usage by dimensions",
                            "modelRef": "#/components/schemas/payment.pricing.price.DimensionalScalar.out",
                            "customType": "payment.pricing.price.DimensionalScalar.out[]",
                            "schema": [
                              {
                                "name": "dimensionConstraintMap",
                                "kind": "optional",
                                "type": "map",
                                "example": "",
                                "customType": "map<string, string>",
                                "schema": []
                              },
                              {
                                "name": "scalar",
                                "kind": "optional",
                                "type": "number",
                                "example": ""
                              }
                            ]
                          },
                          {
                            "name": "usageTransformer",
                            "kind": "optional",
                            "type": "object",
                            "description": "Optional usage transformer. May include just transformer id if the transformer already exists.",
                            "modelRef": "#/components/schemas/payment.pricing.UsageTransformer.out",
                            "customType": "payment.pricing.UsageTransformer.out",
                            "schema": [
                              {
                                "name": "id",
                                "kind": "optional",
                                "type": "string",
                                "description": "Unique identifier for a particular usage transformer.",
                                "example": ""
                              },
                              {
                                "name": "name",
                                "kind": "optional",
                                "type": "string",
                                "description": "Name given to the usage transformer.",
                                "example": ""
                              },
                              {
                                "name": "transformUsageDimensionName",
                                "kind": "optional",
                                "type": "string",
                                "description": "Name of the dimension used to transform / scale usage.",
                                "example": ""
                              },
                              {
                                "name": "productItemId",
                                "kind": "optional",
                                "type": "string",
                                "description": "Product item id associated with the usage transformer.",
                                "example": ""
                              },
                              {
                                "name": "dimensionsInterpolations",
                                "kind": "optional",
                                "type": "object",
                                "description": "List of dimension interpolations, used to derive new dimensions and their values.",
                                "modelRef": "#/components/schemas/com.amberflo.service.common.dimensions_interpolation.DimensionsInterpolation.out",
                                "customType": "com.amberflo.service.common.dimensions_interpolation.DimensionsInterpolation.out[]",
                                "schema": [],
                                "complexType": "oneOf",
                                "complexItems": [
                                  {
                                    "name": "com.amberflo.service.common.dimensions_interpolation.ListNumericInterpolation.out",
                                    "description": "",
                                    "modelRef": "#/components/schemas/com.amberflo.service.common.dimensions_interpolation.ListNumericInterpolation.out",
                                    "schema": [
                                      {
                                        "name": "",
                                        "description": "",
                                        "customType": "Max depth limit reached"
                                      }
                                    ]
                                  },
                                  {
                                    "name": "com.amberflo.service.common.dimensions_interpolation.TableInterpolation.out",
                                    "description": "",
                                    "modelRef": "#/components/schemas/com.amberflo.service.common.dimensions_interpolation.TableInterpolation.out",
                                    "schema": [
                                      {
                                        "name": "",
                                        "description": "",
                                        "customType": "Max depth limit reached"
                                      }
                                    ]
                                  },
                                  {
                                    "name": "com.amberflo.service.common.dimensions_interpolation.TiersInterpolation.out",
                                    "description": "",
                                    "modelRef": "#/components/schemas/com.amberflo.service.common.dimensions_interpolation.TiersInterpolation.out",
                                    "schema": [
                                      {
                                        "name": "",
                                        "description": "",
                                        "customType": "Max depth limit reached"
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "requiredDimensions",
                                "kind": "optional",
                                "type": "array",
                                "example": "",
                                "itemType": "string",
                                "customType": "string[]",
                                "itemExample": "",
                                "itemDefault": ""
                              },
                              {
                                "name": "lockingStatus",
                                "kind": "optional",
                                "type": "string",
                                "description": "",
                                "modelRef": "#/components/schemas/com.amberflo.service.common.LockingStatus.out",
                                "customType": "com.amberflo.service.common.LockingStatus.out",
                                "schema": [
                                  {
                                    "name": "",
                                    "description": "",
                                    "customType": "Max depth limit reached"
                                  }
                                ]
                              },
                              {
                                "name": "lastUpdateTimeInMillis",
                                "kind": "optional",
                                "type": "integer<int64>",
                                "example": 0
                              }
                            ]
                          },
                          {
                            "name": "type",
                            "kind": "optional",
                            "type": "string",
                            "description": "Type of template, automatically populated.",
                            "example": "",
                            "default": "flat_rate"
                          }
                        ]
                      },
                      {
                        "name": "description",
                        "kind": "optional",
                        "type": "string",
                        "description": "Description of the plan. Useful for displaying to users.",
                        "example": ""
                      },
                      {
                        "name": "invoiceBasedFeeIds",
                        "kind": "optional",
                        "type": "array",
                        "description": "A set of fee ids that can calculate an invoice's cost in a custom way.",
                        "example": "",
                        "itemType": "string",
                        "customType": "string[]",
                        "itemExample": "",
                        "itemDefault": ""
                      },
                      {
                        "name": "isDefault",
                        "kind": "optional",
                        "type": "boolean",
                        "description": "Indicates if the plan is the default plan for users.",
                        "example": ""
                      },
                      {
                        "name": "lockingStatus",
                        "kind": "optional",
                        "type": "string",
                        "description": "Indicates if the plan can be modified or not.",
                        "modelRef": "#/components/schemas/com.amberflo.service.common.LockingStatus.out",
                        "customType": "com.amberflo.service.common.LockingStatus.out",
                        "schema": []
                      },
                      {
                        "name": "planLevelFreeTier",
                        "kind": "optional",
                        "type": "number",
                        "description": "Amount that user can use for free without paying on a plan level.",
                        "example": ""
                      },
                      {
                        "name": "successorPlanId",
                        "kind": "optional",
                        "type": "string",
                        "description": "Indicates if the plan has a successor. Gives the option to automatically assign a new plan for a given plan once current plan is deprecated.",
                        "example": ""
                      },
                      {
                        "name": "transitionStrategy",
                        "kind": "optional",
                        "type": "string",
                        "description": "Successor plan transition: whether to wait for end of billing cycle or not.",
                        "modelRef": "#/components/schemas/payment.pricing.SuccessorPlanTransitionStrategy.out",
                        "customType": "payment.pricing.SuccessorPlanTransitionStrategy.out",
                        "schema": []
                      },
                      {
                        "name": "entitlements",
                        "kind": "optional",
                        "type": "array",
                        "description": "A list of entitlements: Entitlement is a feature flag for a specified entitlement id or an api name.",
                        "modelRef": "#/components/schemas/payment.pricing.Entitlements.Entitlement.out",
                        "customType": "payment.pricing.Entitlements.Entitlement.out[]",
                        "schema": [
                          {
                            "name": "id",
                            "kind": "required",
                            "type": "string",
                            "description": "Id for the Entitlement.",
                            "example": ""
                          },
                          {
                            "name": "label",
                            "kind": "optional",
                            "type": "string",
                            "description": "Label for the Entitlement.",
                            "example": ""
                          },
                          {
                            "name": "apiName",
                            "kind": "required",
                            "type": "string",
                            "description": "User-defined API Name for the Entitlement.",
                            "example": ""
                          }
                        ]
                      },
                      {
                        "name": "type",
                        "kind": "optional",
                        "type": "string",
                        "description": "Type of template, automatically populated.",
                        "example": "",
                        "default": "flat_rate"
                      }
                    ]
                  },
                  {
                    "name": "payment.pricing.plans.generators.PayAndGoPlanGenerator.out",
                    "description": "",
                    "modelRef": "#/components/schemas/payment.pricing.plans.generators.PayAndGoPlanGenerator.out",
                    "schema": [
                      {
                        "name": "id",
                        "kind": "required",
                        "type": "string",
                        "description": "Id associated with the plan.",
                        "example": ""
                      },
                      {
                        "name": "billingPeriod",
                        "kind": "required",
                        "type": "object",
                        "description": "Billing period of the plan: how often an invoice is generated.",
                        "modelRef": "#/components/schemas/payment.pricing.BillingPeriod.out",
                        "customType": "payment.pricing.BillingPeriod.out",
                        "schema": [
                          {
                            "name": "interval",
                            "kind": "optional",
                            "type": "string",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.BillingPeriodInterval.out",
                            "customType": "payment.pricing.BillingPeriodInterval.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "intervalsCount",
                            "kind": "optional",
                            "type": "integer<int32>",
                            "example": 0
                          }
                        ]
                      },
                      {
                        "name": "planName",
                        "kind": "required",
                        "type": "string",
                        "description": "Name of the plan. Useful for displaying to users.",
                        "example": ""
                      },
                      {
                        "name": "prepaidBuyingRules",
                        "kind": "required",
                        "type": "object",
                        "description": "Pay and Go prepaid credit purchasing information.",
                        "modelRef": "#/components/schemas/payment.pricing.prepaid.PlanPrepaidBuyingRules.out",
                        "customType": "payment.pricing.prepaid.PlanPrepaidBuyingRules.out",
                        "schema": [
                          {
                            "name": "planFixedFeeIdsToPrepay",
                            "kind": "optional",
                            "type": "array",
                            "example": "",
                            "itemType": "string",
                            "customType": "string[]",
                            "itemExample": "",
                            "itemDefault": ""
                          },
                          {
                            "name": "planRecurringPrepaidAmount",
                            "kind": "optional",
                            "type": "number",
                            "description": "Recurring prepaid to purchase on every billing period on a plan level.",
                            "example": ""
                          },
                          {
                            "name": "productItemRecurringPrepaidAmount",
                            "kind": "optional",
                            "type": "array",
                            "description": "Recurring prepaid to purchase on every billing period on a product item level.",
                            "modelRef": "#/components/schemas/payment.pricing.prepaid.PrepaidProductItem.out",
                            "customType": "payment.pricing.prepaid.PrepaidProductItem.out[]",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "walletMinPrepaidAvailable",
                            "kind": "optional",
                            "type": "number",
                            "description": "Minimum amount that the prepaid wallet should hold. If it's below, Amberflo will automatically purchase more.",
                            "example": ""
                          },
                          {
                            "name": "productItemMinPrepaidAvailable",
                            "kind": "optional",
                            "type": "map",
                            "description": "Key: product item id. Minimum amount that prepaid cards for a product item should hold. If it's below, Amberflo will automatically purchase more.",
                            "example": "",
                            "customType": "map<string, number>",
                            "schema": []
                          }
                        ]
                      },
                      {
                        "name": "priceGenerators",
                        "kind": "required",
                        "type": "object",
                        "description": "List of price generators to use in the plan. Must be usage-based.",
                        "modelRef": "#/components/schemas/payment.pricing.price.generators.UsageBasedPriceGenerator.out",
                        "customType": "payment.pricing.price.generators.UsageBasedPriceGenerator.out[]",
                        "schema": [],
                        "complexType": "oneOf",
                        "complexItems": [
                          {
                            "name": "payment.pricing.price.generators.UsageBasedDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.UsageBasedDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.UsageBasedNoDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.UsageBasedNoDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.UsageBasedVolumePriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.UsageBasedVolumePriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.UsageBasedVolumeDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.UsageBasedVolumeDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "description",
                        "kind": "optional",
                        "type": "string",
                        "description": "Description of the plan. Useful for displaying to users.",
                        "example": ""
                      },
                      {
                        "name": "feeMap",
                        "kind": "optional",
                        "type": "map",
                        "description": "Fixed fees to attach to product plan.",
                        "example": "",
                        "customType": "map<string, payment.pricing.ProductPlanFee.out>",
                        "schema": []
                      },
                      {
                        "name": "invoiceBasedFeeIds",
                        "kind": "optional",
                        "type": "array",
                        "description": "A set of ids for invoice based fees that are added to the invoice.",
                        "example": "",
                        "itemType": "string",
                        "customType": "string[]",
                        "itemExample": "",
                        "itemDefault": ""
                      },
                      {
                        "name": "isDefault",
                        "kind": "optional",
                        "type": "boolean",
                        "description": "Indicates if the plan is the default plan for users.",
                        "example": ""
                      },
                      {
                        "name": "lockingStatus",
                        "kind": "optional",
                        "type": "string",
                        "description": "Indicates if the plan can be modified or not.",
                        "modelRef": "#/components/schemas/com.amberflo.service.common.LockingStatus.out",
                        "customType": "com.amberflo.service.common.LockingStatus.out",
                        "schema": []
                      },
                      {
                        "name": "planLevelFreeTier",
                        "kind": "optional",
                        "type": "number",
                        "description": "Amount that user can use for free without paying on a plan level.",
                        "example": ""
                      },
                      {
                        "name": "successorPlanId",
                        "kind": "optional",
                        "type": "string",
                        "description": "Indicates if the plan has a successor. Gives the option to automatically assign a new plan for a given plan once current plan is deprecated.",
                        "example": ""
                      },
                      {
                        "name": "transitionStrategy",
                        "kind": "optional",
                        "type": "string",
                        "description": "Successor plan transition: whether to wait for end of billing cycle or not.",
                        "modelRef": "#/components/schemas/payment.pricing.SuccessorPlanTransitionStrategy.out",
                        "customType": "payment.pricing.SuccessorPlanTransitionStrategy.out",
                        "schema": []
                      },
                      {
                        "name": "entitlements",
                        "kind": "optional",
                        "type": "array",
                        "description": "A list of entitlements: Entitlement is a feature flag for a specified entitlement id or an api name.",
                        "modelRef": "#/components/schemas/payment.pricing.Entitlements.Entitlement.out",
                        "customType": "payment.pricing.Entitlements.Entitlement.out[]",
                        "schema": [
                          {
                            "name": "id",
                            "kind": "required",
                            "type": "string",
                            "description": "Id for the Entitlement.",
                            "example": ""
                          },
                          {
                            "name": "label",
                            "kind": "optional",
                            "type": "string",
                            "description": "Label for the Entitlement.",
                            "example": ""
                          },
                          {
                            "name": "apiName",
                            "kind": "required",
                            "type": "string",
                            "description": "User-defined API Name for the Entitlement.",
                            "example": ""
                          }
                        ]
                      },
                      {
                        "name": "type",
                        "kind": "optional",
                        "type": "string",
                        "description": "Type of template, automatically populated.",
                        "example": "",
                        "default": "pay_and_go"
                      }
                    ]
                  },
                  {
                    "name": "payment.pricing.plans.generators.UsageBasedPlanGenerator.out",
                    "description": "",
                    "modelRef": "#/components/schemas/payment.pricing.plans.generators.UsageBasedPlanGenerator.out",
                    "schema": [
                      {
                        "name": "id",
                        "kind": "required",
                        "type": "string",
                        "description": "Id associated with the plan.",
                        "example": ""
                      },
                      {
                        "name": "billingPeriod",
                        "kind": "required",
                        "type": "object",
                        "description": "Billing period of the plan: how often an invoice is generated.",
                        "modelRef": "#/components/schemas/payment.pricing.BillingPeriod.out",
                        "customType": "payment.pricing.BillingPeriod.out",
                        "schema": [
                          {
                            "name": "",
                            "description": "",
                            "customType": "Max depth limit reached"
                          }
                        ]
                      },
                      {
                        "name": "planName",
                        "kind": "required",
                        "type": "string",
                        "description": "Name of the plan. Useful for displaying to users.",
                        "example": ""
                      },
                      {
                        "name": "priceGenerators",
                        "kind": "required",
                        "type": "object",
                        "description": "List of price generators to use in the plan. Must be usage-based.",
                        "modelRef": "#/components/schemas/payment.pricing.price.generators.UsageBasedPriceGenerator.out",
                        "customType": "payment.pricing.price.generators.UsageBasedPriceGenerator.out[]",
                        "schema": [],
                        "complexType": "oneOf",
                        "complexItems": [
                          {
                            "name": "payment.pricing.price.generators.UsageBasedDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.UsageBasedDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.UsageBasedNoDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.UsageBasedNoDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.UsageBasedVolumePriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.UsageBasedVolumePriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "payment.pricing.price.generators.UsageBasedVolumeDimensionPriceGenerator.out",
                            "description": "",
                            "modelRef": "#/components/schemas/payment.pricing.price.generators.UsageBasedVolumeDimensionPriceGenerator.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "description",
                        "kind": "optional",
                        "type": "string",
                        "description": "Description of the plan. Useful for displaying to users.",
                        "example": ""
                      },
                      {
                        "name": "invoiceBasedFeeIds",
                        "kind": "optional",
                        "type": "array",
                        "description": "A set of fee ids that can calculate an invoice's cost in a custom way.",
                        "example": "",
                        "itemType": "string",
                        "customType": "string[]",
                        "itemExample": "",
                        "itemDefault": ""
                      },
                      {
                        "name": "isDefault",
                        "kind": "optional",
                        "type": "boolean",
                        "description": "Indicates if the plan is the default plan for users.",
                        "example": ""
                      },
                      {
                        "name": "lockingStatus",
                        "kind": "optional",
                        "type": "string",
                        "description": "Indicates if the plan can be modified or not.",
                        "modelRef": "#/components/schemas/com.amberflo.service.common.LockingStatus.out",
                        "customType": "com.amberflo.service.common.LockingStatus.out",
                        "schema": [
                          {
                            "name": "",
                            "description": "",
                            "customType": "Max depth limit reached"
                          }
                        ]
                      },
                      {
                        "name": "planLevelFreeTier",
                        "kind": "optional",
                        "type": "number",
                        "description": "Amount that user can use for free without paying on a plan level.",
                        "example": ""
                      },
                      {
                        "name": "successorPlanId",
                        "kind": "optional",
                        "type": "string",
                        "description": "Indicates if the plan has a successor. Gives the option to automatically assign a new plan for a given plan once current plan is deprecated.",
                        "example": ""
                      },
                      {
                        "name": "transitionStrategy",
                        "kind": "optional",
                        "type": "string",
                        "description": "Successor plan transition: whether to wait for end of billing cycle or not.",
                        "modelRef": "#/components/schemas/payment.pricing.SuccessorPlanTransitionStrategy.out",
                        "customType": "payment.pricing.SuccessorPlanTransitionStrategy.out",
                        "schema": [
                          {
                            "name": "",
                            "description": "",
                            "customType": "Max depth limit reached"
                          }
                        ]
                      },
                      {
                        "name": "entitlements",
                        "kind": "optional",
                        "type": "array",
                        "description": "A list of entitlements: Entitlement is a feature flag for a specified entitlement id or an api name.",
                        "modelRef": "#/components/schemas/payment.pricing.Entitlements.Entitlement.out",
                        "customType": "payment.pricing.Entitlements.Entitlement.out[]",
                        "schema": [
                          {
                            "name": "",
                            "description": "",
                            "customType": "Max depth limit reached"
                          }
                        ]
                      },
                      {
                        "name": "type",
                        "kind": "optional",
                        "type": "string",
                        "description": "Type of template, automatically populated.",
                        "example": "",
                        "default": "pure_usage_based"
                      }
                    ]
                  },
                  {
                    "name": "payment.pricing.plans.generators.SeatBasedPlanGenerator.out",
                    "description": "",
                    "modelRef": "#/components/schemas/payment.pricing.plans.generators.SeatBasedPlanGenerator.out",
                    "schema": [
                      {
                        "name": "",
                        "description": "",
                        "customType": "Max depth limit reached"
                      }
                    ]
                  },
                  {
                    "name": "payment.pricing.plans.generators.SubscriptionPlanGenerator.out",
                    "description": "",
                    "modelRef": "#/components/schemas/payment.pricing.plans.generators.SubscriptionPlanGenerator.out",
                    "schema": [
                      {
                        "name": "",
                        "description": "",
                        "customType": "Max depth limit reached"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "planCurrency",
                "kind": "optional",
                "type": "string",
                "description": "The customized currency for the plan in ISO 4217 format.",
                "example": "USD"
              },
              {
                "name": "realTimePricing",
                "kind": "optional",
                "type": "boolean",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/payment.pricing.ProductPlan.out",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "FJ5OEceG166pA-463xUhx",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://app.amberflo.io/payments/pricing/amberflo/account-pricing/product-plans \\\n     --header 'accept: application/json'"
        },
        {
          "id": "CbM2y17w5zOec3kHJ6-wD",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://app.amberflo.io/payments/pricing/amberflo/account-pricing/product-plans\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "AUn48PN4kiZtK1uTnGgwt",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/payments/pricing/amberflo/account-pricing/product-plans\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "_q5hRz--B5VFTNPQVrwAN",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/payments/pricing/amberflo/account-pricing/product-plans\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "FJ5OEceG166pA-463xUhx"
    },
    "results": {
      "languages": [
        {
          "id": "z8dfR8mTr8GXQinnNcIjR",
          "language": "200",
          "code": "// Successful request\n{\n  \"id\": \"\",\n  \"productId\": \"\",\n  \"productItemPriceIdsMap\": \"\",\n  \"billingPeriod\": {\n    \"interval\": \"\",\n    \"intervalsCount\": \"\"\n  },\n  \"planLevelFreeTier\": 0,\n  \"invoiceBasedFeeIds\": [\n    \"\"\n  ],\n  \"planMinimumPayment\": 0,\n  \"minimumPaymentGranularity\": \"\",\n  \"productPlanName\": \"\",\n  \"description\": \"\",\n  \"lastUpdateTimeInMillis\": \"\",\n  \"feeMap\": \"\",\n  \"entitlements\": [\n    {\n      \"id\": \"\",\n      \"label\": \"\",\n      \"apiName\": \"\"\n    }\n  ],\n  \"lockingStatus\": \"\",\n  \"isDefault\": false,\n  \"successorPlanId\": \"\",\n  \"transitionStrategy\": \"\",\n  \"type\": \"\",\n  \"prepaidBuyingRules\": {\n    \"planFixedFeeIdsToPrepay\": [\n      \"\"\n    ],\n    \"planRecurringPrepaidAmount\": 0,\n    \"productItemRecurringPrepaidAmount\": [\n      {\n        \"productItemId\": \"\",\n        \"prepaidAmount\": 0\n      }\n    ],\n    \"walletMinPrepaidAvailable\": 0,\n    \"productItemMinPrepaidAvailable\": \"\"\n  },\n  \"planGenerator\": {},\n  \"planCurrency\": \"USD\",\n  \"realTimePricing\": false\n}"
        }
      ],
      "selectedLanguageId": "z8dfR8mTr8GXQinnNcIjR"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}